Skip to content

Taxum / @taxum/core / routing / m

Variable: m

const m: object

Defined in: routing/method-router.ts:39

Shortcut methods for creating MethodRouters for a given method.

Type declaration

connect()

connect: (handler) => MethodRouter

Parameters

handler

Handler

Returns

MethodRouter

delete()

delete: (handler) => MethodRouter

Parameters

handler

Handler

Returns

MethodRouter

get()

get: (handler) => MethodRouter

Parameters

handler

Handler

Returns

MethodRouter

head: (handler) => MethodRouter

Parameters

handler

Handler

Returns

MethodRouter

options()

options: (handler) => MethodRouter

Parameters

handler

Handler

Returns

MethodRouter

patch()

patch: (handler) => MethodRouter

Parameters

handler

Handler

Returns

MethodRouter

post()

post: (handler) => MethodRouter

Parameters

handler

Handler

Returns

MethodRouter

put()

put: (handler) => MethodRouter

Parameters

handler

Handler

Returns

MethodRouter

trace()

trace: (handler) => MethodRouter

Parameters

handler

Handler

Returns

MethodRouter