Optionaloptions: RouterOptionsConfiguration options for the router.
ReadonlybaseAn optional prefix used when the router is mounted without a specific path.
ReadonlydescriptionAn optional description for the router, useful for documentation or logging.
ReadonlynameAn optional name for the router, useful for identification.
Registers a DELETE route with optional middleware and schema.
The path for the route.
The handlers and optional schema for the route.
Registers a GET route with optional middleware and schema.
The path for the route.
The handlers and optional schema for the route.
FunctionRetrieves a list of all registered routes, including those from mounted routers.
An array of all routes.
Registers a HEAD route with optional middleware and schema.
The path for the route.
The handlers and optional schema for the route.
Registers an OPTIONS route with optional middleware and schema.
The path for the route.
The handlers and optional schema for the route.
Registers a PATCH route with optional middleware and schema.
The path for the route.
The handlers and optional schema for the route.
Registers a POST route with optional middleware and schema.
The path for the route.
The handlers and optional schema for the route.
Registers a PUT route with optional middleware and schema.
The path for the route.
The handlers and optional schema for the route.
Registers middleware or mounts a router at a specific path or globally.
Optionalhandler: HandlerThe handler or router to register.
Registers middleware or mounts a router at a specific path or globally.
The handler or router to register.
Registers middleware or mounts a router at a specific path or globally.
Registers middleware or mounts a router at a specific path or globally.
Manages routes and middleware in an application.