Implementation of a generic backend of eshop in Crystal
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
240 B

5 years ago
5 years ago
5 years ago
  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