jooby-project / jooby

The modular web framework for Java and Kotlin
https://jooby.io
Apache License 2.0
1.71k stars 197 forks source link

Allow to define mounting context while importing an app #180

Closed nacho270 closed 9 years ago

jknack commented 9 years ago

It will be implemented via: use, like:


public class Admin extends Jooby {
  {
    // routes go here
  }
}

public class App extends Jooby {
  {
    use("/admin", new Admin());
  }
}

But, today, ONLY routes will be imported from an existing App. Modules, renderers, parsers, etc... won't.