# Routes
# This file defines all application routes (Higher priority routes first)
# https://www.playframework.com/documentation/latest/ScalaRouting
# ~~~~

# An example controller showing a sample home page
GET     /                           controllers.HomeController.index

# Food Manager
GET     /food                       controllers.FoodController.query(term: String ?= "")
GET     /food/:id                   controllers.FoodController.get(id: String)
PUT     /food                       controllers.FoodController.put()
POST    /food/:id                   controllers.FoodController.update(id: String)
DELETE  /food/:id                   controllers.FoodController.delete(id: String)

# Ingredient Manager
GET     /ingredients                controllers.IngredientController.editorPage

# Map static resources from the /public folder to the /assets URL path
GET     /assets/*file               controllers.Assets.versioned(path="/public", file: Asset)
