scala - How do you pass the dynamic part of a route across routes files? -


using play framework, trying split as possible within end code.

i have following (example) routes , controllers in project:

conf/users.routes , conf/users.preferences.routes.

the first file looks this:

# routes # file defines application routes (higher priority routes first) # ~~~~  /users              controllers.users.index() /users/:username    controllers.users.show(username: string)  -> /users/:username/preferences users.preferences.routes 

the second file looks this:

# routes # file defines application routes (higher priority routes first) # ~~~~  /    controllers.users.preferences.index(username: string) 

how can pass in username variable second routes file?


Comments

Popular posts from this blog

angular - DownloadURL return null in below code -

meteor - inserting data to database gives error "insert failed: Method '/texts/insert' not found" -