io.javalin.router.RoutingApi.kt Maven / Gradle / Ivy
package io.javalin.router
import io.javalin.config.JavalinConfig
interface RoutingApi
fun interface RoutingApiInitializer {
fun initialize(cfg: JavalinConfig, internalRouter: InternalRouter, setup: RoutingSetupScope)
}
fun interface RoutingSetupScope {
fun SETUP.setup()
}
internal fun RoutingSetupScope.invokeAsSamWithReceiver(receiver: SETUP) {
with(this) { receiver.setup() }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy