optionalParam

fun Routing.optionalParam(name: String, build: Routing.() -> Unit): Routing

Builds a route to capture an optional parameter with specified name, if it exists.

See also