Skip to main content

Class: RouteStore

@sapphire/plugin-api.RouteStore

since 1.0.0

Hierarchy

  • Store<Route>

    RouteStore

Constructors

constructor

new RouteStore()

Overrides

Store<Route\>.constructor

Defined in

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

Properties

table

Readonly table: Collection<Methods, Collection<Route, MethodCallback>>

Defined in

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

Methods

match

match(request): null | RouteMatch

Parameters

NameType
requestApiRequest

Returns

null | RouteMatch

Defined in

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


parseURL

Private parseURL(url?): Object

Parameters

NameTypeDefault value
urlstring''

Returns

Object

NameType
querystringstring
splitsstring[]

Defined in

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