Route1

open class Route1(val pattern: String) : RouteBase

A parameterized route with one route parameter

Constructors

Link copied to clipboard
constructor(pattern: String)

Functions

Link copied to clipboard
fun build(p1: String): String

Builds the uri with the given parameters

Link copied to clipboard
open override fun buildUri(vararg routeParams: String): String

Builds a uri with the given routeParams

open override fun buildUri(routeParams: Map<String, String>, queryParams: Map<String, String>): String

Builds a uri with the given routeParams and queryParams

Link copied to clipboard
open override fun match(uri: String): Route.Match?

Tries to match the given uri against the pattern of the route.

Properties

Link copied to clipboard
override val pattern: String

The pattern of the route