Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Separating routes into different packages in play just like controllers. #5421
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.
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.
@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