java-tutorials/web-modules/play-modules/student-api/conf/routes

13 lines
684 B
Plaintext
Raw Normal View History

# Routes
# This file defines all application routes (Higher priority routes first)
# ~~~~
GET / controllers.StudentController.listStudents()
GET /:id controllers.StudentController.retrieve(id:Int)
POST / controllers.StudentController.create(request: Request)
PUT / controllers.StudentController.update(request: Request)
DELETE /:id controllers.StudentController.delete(id:Int)
# Map static resources from the /public folder to the /assets URL path
GET /assets/*file controllers.Assets.versioned(path="/public", file: Asset)