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

io.javalin.community.routing.dsl.DslRoute.kt Maven / Gradle / Ivy

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