Class MidwayMiddlewareService<T, R, N>
Properties
Readonly
applicationContext
Methods
compose
- compose(middleware: (string | CommonMiddleware<T, R, N>)[], app: IMidwayBaseApplication<Context>, name?: string): Promise<{
_name: string;
(context: T, next?: any): Promise<any>;
}>
-
Returns Promise<{
_name: string;
(context: T, next?: any): Promise<any>;
}>