routes 962 B

1234567891011121314151617181920
  1. # Routes
  2. # This file defines all application routes (Higher priority routes first)
  3. # https://www.playframework.com/documentation/latest/ScalaRouting
  4. # ~~~~
  5. # An example controller showing a sample home page
  6. GET / controllers.HomeController.index
  7. # Food Manager
  8. GET /food controllers.FoodController.query(term: String ?= "")
  9. GET /food/:id controllers.FoodController.get(id: String)
  10. PUT /food controllers.FoodController.put()
  11. POST /food/:id controllers.FoodController.update(id: String)
  12. DELETE /food/:id controllers.FoodController.delete(id: String)
  13. # Ingredient Manager
  14. GET /ingredients controllers.IngredientController.editorPage
  15. # Map static resources from the /public folder to the /assets URL path
  16. GET /assets/*file controllers.Assets.versioned(path="/public", file: Asset)