parseConstant

fun parseConstant(value: String): RouteSelector

Builds a RouteSelector to match a constant or wildcard segment parameter.


fun parseConstant(value: String, hasTrailingSlash: Boolean): RouteSelector

Builds a RouteSelector to match a constant or wildcard segment parameter and trailing slash, if any.