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

c# - OpenXML hanging while writing elements -

php - regexp cyrillic filename not matches -

sql - Select Query has unexpected multiple records (MS Access) -