All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.javalin.router.RoutingApi.kt Maven / Gradle / Ivy

There is a newer version: 6.3.0
Show newest version
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