ControllerProvider
@tsed/di
Usage
typescript
import { ControllerProvider } from "@tsed/di";
See /packages/di/src/types/common/domain/ControllerProvider.ts.
Overview
ts
class ControllerProvider<T = any> extends Provider<T> {
tokenRouter: string;
constructor(token: TokenProvider, options?: Partial<Provider>);
get middlewares(): Partial<ControllerMiddlewares>;
set middlewares(middlewares: Partial<ControllerMiddlewares>);
}
tokenRouter
ts
tokenRouter: string;
get middlewares
ts
get middlewares(): Partial<ControllerMiddlewares>;
set middlewares
ts
set middlewares(middlewares: Partial<ControllerMiddlewares>);