in my play2 routes file, I am trying to use a colon as a literal:
GET /:search controllers.SearchController.index()
but play complains, that a parameter is missing. How do I escape the colon (I tried backslashing it)?
thanks
You must introduce a dummy regex parameter, as such:
You must then also redefine your controller method:
The parser is built in such a way that path expressions cannot be escaped, save for this method.