Webroute

createRadixRouter

createRadixRouter<T>(initialRoutes): RequestRouter<T>

Creates a radix web router.

Route matching is determined by the radix algorithm. Handlers associated with specific methods are prioritised over wildcard methods.

Type Parameters

Type Parameter
T

Parameters

ParameterType
initialRoutesRouteInput<T>[]

Returns

RequestRouter<T>

On this page