Type of custom extensions added to the context
Type of custom extensions added to the context
Registers a global middleware that runs for all routes in this router.
Middleware function or definition
The router instance for chaining
Mounts a sub-router at the specified path.
Base path for the sub-router
Router instance to mount
The router instance for chaining
Registers a GET route.
Registers a GET route.
Registers a GET route.
Registers a GET route.
Registers a POST route.
Registers a POST route.
Registers a POST route.
Registers a POST route.
Registers a PUT route.
Registers a PUT route.
Registers a PUT route.
Registers a PUT route.
Registers a DELETE route.
Registers a DELETE route.
Registers a DELETE route.
Registers a DELETE route.
Registers a PATCH route.
Registers a PATCH route.
Registers a PATCH route.
Registers a PATCH route.
Registers a HEAD route.
Registers a HEAD route.
Registers a HEAD route.
Registers a HEAD route.
Registers an OPTIONS route.
Registers an OPTIONS route.
Registers an OPTIONS route.
Registers an OPTIONS route.
Creates a route builder for chaining multiple HTTP methods on the same path.
Base path for all routes in the chain
OptionalrouteMiddlewares: MiddlewareDefinition | MiddlewareDefinition[]Optional middleware to apply to all routes in the chain
Route chain builder
Router class for Kito. Provides HTTP routing and middleware support with the ability to mount sub-routers.
Example