In play 1.x you had the http.path param which allowed you to set a url to add to every route
How can I achieve someting similar in play 2.0?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I asked at play’s discussion group and they helped me achieve this initial version
I create a PrefixedRequest like this
Then I used it in Global.scala
finnally added this to application.conf
It seems to work, but I couln’t find out how to add that prefix to the reversed routes… can anybody gimme a hand on that part?
—
Some useful links
Check this thread and the docs