programadorthi / kotlin-routing

An extensible and multiplatform routing system powered by Ktor
https://github.com/programadorthi/kotlin-routing/wiki
Apache License 2.0
51 stars 3 forks source link
android compose deeplink jetbrains kmm kotlin ktor multiplatform multiplatform-kotlin-library navigation navigator router routing

Kotlin Routing

A multiplatform, extensible, and independent routing library powered by Ktor. Create routing independently and extend it to what you need.

Core module

The core module is the Ktor routing engine modified to be "server" and "client". It is abstract and ready to extend. Using core module you can:

val router = routing {
    route(path = "/hello") {
        handle {
          // Handle the call to the routing "/login"
        }
    }
}

// And to call login routing...
router.call(uri = "/hello")

For more information check the Wiki pages.