IMiddlewareBuilder: { use(middleware: HttpMiddleware): IMiddlewareBuilder }

A builder for registering type-safe middleware scoped to a single endpoint.

Used within IHttpEndpoint.middlewares to add middleware that applies only to that specific endpoint. This keeps middleware isolated and prevents it from affecting other routes.

IMPORT_PATH: "@daiso-tech/core/http-router/contracts"

Type declaration