@webroute/routerFunctions
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
Parameter | Type |
---|---|
initialRoutes | RouteInput <T >[] |
Returns
RequestRouter
<T
>