UrlPattern

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

API

Constructor

new UrlPattern(pattern,?options)
Source

Arguments:

ArgumentTypeDescription
*patternstring
options
An object with the properties below
options.baseUrlnull|string
options.mergeQueryboolean
options.queryquery

Methods

resolve(?kwargs,?options)
Source

Arguments:

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

Properties

pattern

Source
string

requiredArgNames

Source
string[]

resolveOptions

Source
An object with these properties:
PropertyTypeDescription
baseUrlnull|string
mergeQueryboolean
queryquery

validArgNames

Source
string[]