scala - Play framework: Add routes from sub-projects dynamically -


i'm developing system discover subprojects @ compile time. works. see here. issue subproject's route file being ignored.

i know normal way include route file in main route file hardcoding latter former. defy goal of dynamic subprojects.

i bet there's way to, in build.scala, discover route file , append main route file. i'm beginner , have no idea how it. please me out?

alternatively, if there's no way @ compile time, maybe there's way load @ runtime? know there's api intercept requests. if can read routes implement dynamic routing way. idea?

your submodules implement own routing dsl. see example in api doc. optionally, hook compile task in root project , append routes main routes file programmatically.


Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -