java-tutorials/play-framework/introduction/conf/routes

13 lines
528 B
Plaintext

# Routes
# This file defines all application routes (Higher priority routes first)
# ~~~~
GET / controllers.StudentController.listStudents()
POST /:id controllers.StudentController.retrieve(id:Int)
POST / controllers.StudentController.create()
PUT / controllers.StudentController.update()
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)