Registers a single endpoint with fully typed request data inference.
The endpoint definition.
The router instance for chaining.
Groups a set of routes together.
A callback that receives a sub-router to register routes on.
The router instance for chaining.
Groups a set of routes under a path prefix.
The URL prefix for this route group (e.g. "/api/v1").
A callback that receives a sub-router to register routes on.
The router instance for chaining.
Registers one or more type-safe middleware handlers that apply to multiple routes.
Use this method for cross-cutting concerns like authentication, logging, or rate-limiting that should run across several endpoints.
For middleware that should run on only one endpoint, set the IHttpEndpoint.middlewares property directly on that endpoint definition instead — this scopes the middleware to that route alone and prevents it from affecting other endpoints.
One or more middleware registrations.
The router instance for chaining.
The base HTTP router interface providing route registration methods (IHttpRouterBase.use, IHttpRouterBase.endpoint, IHttpRouterBase.group) without the WinterTC IWinterTcFetch.fetch boundary.
Separated from IHttpRouter so that sub-routers created via IHttpRouterBase.group can re-use the registration API without exposing a second
fetchentry point. The full router isIHttpRouter = IHttpRouterBase & IWinterTcFetch.IMPORT_PATH:
"@daiso-tech/core/http-router/contracts"