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

Separating routes into different packages in play just like controllers. #5421

Closed
pamu opened this Issue Dec 25, 2015 · 2 comments

Comments

Projects
None yet
3 participants
@pamu
Copy link

pamu commented Dec 25, 2015

declaring Routes in the respective controllers package in play

Controller can be any class or object which extends Play.api.mvc.Controller and they can be in any package. I want to write routes along with the Controllers in the same package. This allows clean separation of concerns.

componentmodel

In the above picture in the buyers package routes of buyers are declared along with the controller and same in case of analytics package also. The routes of analytics are declared along with analytics controllers in the same package.

@gsmaverick

This comment has been minimized.

Copy link
Contributor

gsmaverick commented Dec 28, 2015

@pamu This is not an issue with the Play framework and should probably be posted on the mailing list instead: https://groups.google.com/forum/#!forum/play-framework

@pamu

This comment has been minimized.

Copy link

pamu commented Dec 28, 2015

@gsmaverick Sure, Thanks

@cchantep cchantep closed this Dec 29, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment