# Routes
# This file defines all application routes (Higher priority routes first)
# ~~~~

# Home page
GET     /                           controllers.Application.index()

GET     /widgets                    controllers.WidgetController.list()
GET     /widget/:id                 controllers.WidgetController.details(id : String)
POST    /widgets                    controllers.WidgetController.save()
POST    /widget-update              controllers.WidgetController.update()
DELETE  /widget/:id                 controllers.WidgetController.delete(id : String)

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