Namespace: Router#

server.Router

A namespace for Router statics.

Type Aliases#

Callback#

Ƭ Callback: (req: IRequest, …args: string[]) => Promise<Response>

Type declaration#

▸ (req, …args): Promise<Response>

The Callback type.

Parameters#

Name

Type

req

IRequest

...args

string[]

Returns#

Promise<Response>

Defined in#

packages/server/lib/router.d.ts:69


Method#

Ƭ Method: "GET" | "PUT" | "POST" | "PATCH" | "DELETE"

The Method type.

Defined in#

packages/server/lib/router.d.ts:73