am working on a play framework application: I have some routes
GET /register controllers.HomeController.registration()
while trying to reach
http://localhost:9000/register
it goes to
+ nocsrf
GET /:username controllers.HomeController.account(username:String)
the project was working fine last week but ever since my computer had issues I moved the project and formatted the computer. please guide.
i have tried to compile the project couple time but yet not working. please .. help me solve this
thanks in advance
Routes are resolved from top to bottom, so just put the more specific route before the more generic one.
# FIRST
GET /register
#### MORE ROUTES IF YOU WANT
#FINALLY
GET /:username
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.