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

GET     /                           controllers.Application.index(name = "Guest")
GET     /key                        controllers.Application.key
GET     /async                      controllers.Application.asyncResult
GET     /lang/:code                 controllers.Application.setLang(code)
GET     /hello                      controllers.Application.hello()
POST    /json                       controllers.Application.getIdenticalJson()
GET     /paged                      controllers.Application.paged(p: controllers.Pager)
GET     /user/:user                 controllers.Application.user(user: models.User)
GET     /thread                     controllers.Application.thread

POST    /parsers/json               controllers.BodyParsers.json()
POST    /parsers/limitedjson        controllers.BodyParsers.limitedJson()

GET     /test/echo                  controllers.TestController.echo()
POST    /test/echo                  controllers.TestController.echo()
POST    /test/slave                 controllers.TestController.slave()

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

GET     /:name                      controllers.Application.index(name)
