route

fun Route.route(path: String, build: Route.() -> Unit): Route

Builds a route to match the specified path.

See also


fun Route.route(path: String, method: HttpMethod, build: Route.() -> Unit): Route

Builds a route to match the specified HTTP method and path.

See also