conf/routes
ファイルで「どのURLに対してどのControllerのどのメソッドを呼ぶか」を定義
GET /hello controllers.HomeController.hello
POST /submit controllers.FormController.submit
/user/42
?key=value
形式で追加情報を渡す/search?q=apple&page=2
GET /hello/:name controllers.HomeController.hello(name: String)
/hello/ユーザー名
のようにアクセスすると、name
に値が入るGET /user/:id/profile/:section controllers.UserController.profile(id: Long, section: String)