Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bring back controller prefixes #104

capotej opened this issue Jan 27, 2014 · 2 comments

bring back controller prefixes #104

capotej opened this issue Jan 27, 2014 · 2 comments


Copy link

@capotej capotej commented Jan 27, 2014

Something like register("/users", usersController)

Copy link

@ggarber ggarber commented Feb 1, 2014


Copy link

@jacquesbernier jacquesbernier commented Nov 15, 2014

I'm achieving this by extending Controller and it looks quite ok.

val mount = "/users"
register(new UsersController(mount))
register(new AnotherController())

All you need to do is overriding addRoute to build the path using the mount.

Is there a reason not to use this approach ?

@scosenza scosenza closed this Sep 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants