scala - Play optional query parameter not parsing -
i trying documented routes example play 2.1.1
routes
# version parameter optional. e.g. /api/list-all?version=3.0 /api/list-all controllers.api.list(option[version])
and then
$ play-2.1.1 compile [error] /home/paul/server/conf/routes:2: compilation error[`)' expected `[' found]
what going wrong?
it should this:
get /api/list-all controllers.api.list(version: option[string])
Comments
Post a Comment