Skip to content

crelte / static / StaticRouter

Class: StaticRouter

A plugin

Implements

Constructors

Constructor

ts
new StaticRouter(crelte): StaticRouter;

Parameters

crelte

Crelte

Returns

StaticRouter

Accessors

name

Get Signature

ts
get name(): string;
Returns

string

Implementation of

Plugin.name

Methods

add()

ts
add(pattern, ...handlers): this;

Parameters

pattern

Pattern

handlers

...StaticRouteHandler[]

Returns

this