UrlPattern

Source
import { UrlPattern } from "@prestojs/routing";

API

Constructor

new UrlPattern(pattern)

Arguments:

ArgumentTypeDescription
*patternstring

Methods

resolve(?kwargs,?options)

Arguments:

ArgumentTypeDescription
kwargskwargs
options
An object with the properties below
options.queryquery
Returns:string

Properties

pattern

Source
string

requiredArgNames

Source
string[]

validArgNames

Source
string[]