Creates an instance of GroupingProvider.
The Express router instance to use. Defaults to a new Router.
The base path for all routes registered through this provider instance. Defaults to '/'.
An array of middleware functions to be applied to all routes in this group.
Registers a DELETE route.
The route path(s).
A list of handlers, which can include middleware.
The GroupingProvider instance for chaining.
Finalizes the setup by mounting the main router and error handlers onto the provided Express application. This should be called after all routes are defined.
The Express application instance.
Registers a GET route.
The route path(s).
A list of handlers, which can include a validation schema and middleware.
The GroupingProvider instance for chaining.
Creates a new nested route group with flexible arguments.
Can be called in multiple ways:
group((router) => { ... })group('path', (router) => { ... })group(middleware, (router) => { ... })group('path', middleware, (router) => { ... })The arguments for creating the group, which can include a path, middleware, and the callback function.
Registers a PATCH route.
The route path(s).
A list of handlers, which can include a validation schema and middleware.
The GroupingProvider instance for chaining.
Registers a POST route.
The route path(s).
A list of handlers, which can include a validation schema and middleware.
The GroupingProvider instance for chaining.
Registers a PUT route.
The route path(s).
A list of handlers, which can include a validation schema and middleware.
The GroupingProvider instance for chaining.
Registers a repository, automatically creating RESTful routes based on its methods and decorator metadata.
An instance of a class that implements IRepository.
Optionalpath: stringOptional. Overrides the base path name defined by the @PathName decorator or the class name.
The GroupingProvider instance for chaining.
Returns the Express router instance for the route group.
The Express router instance.
Uses a given router in the current route group.
The router to be used.
Manages route grouping, middleware application, and automated registration for Express applications.