IHttpRouterBase: {
    endpoint(endpoint: IHttpEndpoint): IHttpRouterBase;
    group(group: HttpRouteGroup): IHttpRouterBase;
    group(prefix: string, group: HttpRouteGroup): IHttpRouterBase;
    use(middleware: HttpMiddleware): IHttpRouterBase;
}

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 fetch entry point. The full router is IHttpRouter = IHttpRouterBase & IWinterTcFetch.

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

Type declaration