Creates a new router instance.
The logger instance.
Activates the router, enabling middleware processing.
Once activated, middleware can be retrieved but not added.
Adds a middleware in the chain.
Middleware can only be added before the router is activated.
The unique name for the middleware.
The middleware handler function.
Retrieves a middleware by its index.
Middleware can only be retrieved after the router is activated.
The index position of the middleware.
The middleware tuple with name and handler, or undefined if not found.
StaticregisterRegisters the router as a singleton in the DI container.
The DI container to register in.
StaticresolveResolves the router from the DI container.
The DI container to resolve from.
The router instance.
Represents the http-server router.
Depends:
Example