io.javalin.community.routing.dsl.DslRoute.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of routing-dsl Show documentation
Show all versions of routing-dsl Show documentation
Module provides set of DSLs for building routing in Javalin application
package io.javalin.community.routing.dsl
import io.javalin.community.routing.Route
import io.javalin.community.routing.Routed
/* Regular routes */
typealias DslHandler = CONTEXT.() -> RESPONSE
interface DslRoute : Routed {
val method: Route
val version: String?
val handler: DslHandler
}
open class DefaultDslRoute(
override val method: Route,
override val path: String,
override val version: String? = null,
override val handler: CONTEXT.() -> RESPONSE
) : DslRoute
© 2015 - 2025 Weber Informatics LLC | Privacy Policy