Skip to main content

Class: RouteStore

Since

1.0.0

Extends

  • Store <Route, "routes">

Constructors

new RouteStore()

new RouteStore(): RouteStore

Returns

RouteStore

Overrides

Store<Route, 'routes'>.constructor

Source

projects/plugins/packages/api/src/lib/structures/RouteStore.ts:26

Properties

table

readonly table: Collection <Methods, Collection <Route <RouteOptions>, MethodCallback>>

Source

projects/plugins/packages/api/src/lib/structures/RouteStore.ts:24

Methods

match()

match(request: ApiRequest): null | RouteMatch

Parameters

ParameterType
requestApiRequest

Returns

null | RouteMatch

Source

projects/plugins/packages/api/src/lib/structures/RouteStore.ts:32


parseURL()

private parseURL(url: string): object

Parameters

ParameterTypeDefault value
urlstring''

Returns

object

querystring

querystring: string

splits

splits: string[]

Source

projects/plugins/packages/api/src/lib/structures/RouteStore.ts:63