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

GET     /           org.sample.dummy.controllers.ViewController.index

# Shared Route
# type: org.sample.dummy.shared.models.Pojo
GET     /dummy/:id/ org.sample.dummy.controllers.PojoController.get(id: Long)

# Shared Route
# type: Seq[org.sample.dummy.shared.models.Pojo]
GET     /dummy/     org.sample.dummy.controllers.PojoController.query

# Shared Route
# body: org.sample.dummy.shared.models.Pojo
# type: org.sample.dummy.shared.models.Pojo
PUT     /dummy/     org.sample.dummy.controllers.PojoController.add

# Shared Route
# body: org.sample.dummy.shared.models.Pojo
# type: org.sample.dummy.shared.models.Pojo
POST    /dummy/:id/ org.sample.dummy.controllers.PojoController.update(id: Long)

# Shared Route
# type: org.sample.dummy.shared.models.Pojo
DELETE  /dummy/:id/ org.sample.dummy.controllers.PojoController.delete(id: Long)

# Shared Route
# type: String
GET    /error/timeout/:time/ org.sample.dummy.controllers.PojoController.reallySlowApi(time: Long)

# Shared Route
# type: org.sample.dummy.shared.models.Pojo
GET    /error/parse/ org.sample.dummy.controllers.PojoController.wrongReturnType

# Shared Route
# type: String
GET    /error/:status/ org.sample.dummy.controllers.PojoController.errorCode(status :Int)


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