danneu / kog

🌶 A simple Kotlin web framework inspired by Clojure's Ring.
43 stars 4 forks source link

[Router] Support router mounting #12

Closed danneu closed 7 years ago

danneu commented 7 years ago

Haven't thought of the exact API, but it'd be nice to inject child routers which would help one organize router code.

val router = Router {
    mount(router1)
    mount("/prefix", router2)
}