Implementation of a generic backend of eshop in Crystal
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

11 行
240 B

  1. require "kemal"
  2. require "./sales_backend/http/user"
  3. require "./sales_backend/http/product"
  4. require "./sales_backend/http/category"
  5. get "/" do |context|
  6. context.response.content_type = "application/json"
  7. "OK".to_json
  8. end
  9. Kemal.run