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

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -