optionalParam

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

Builds a route to optionally capture parameter with specified name, if it exists