Router
Overview
@webroute/router
exports several routers which simply match handlers to an incoming request.
All routers have the shape:
Example Usage
Routers
In most cases, you will want to use the faster radix
router which uses the radix
algorithm to quickly find route handlers.
Radix Router
Linear Router
However, in some instances – like if route registration order is important – you might want to use the linear router.