Static

open class Static(val pattern: String) : RouteBase

A static route is a route that does not have any route parameters

Constructors

Link copied to clipboard
constructor(pattern: String)

Properties

Link copied to clipboard
override val pattern: String

The pattern of the route

Functions

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
operator fun invoke(): String
Link copied to clipboard
open override fun match(uri: String): Route.Match?

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