routing-controllers
Version:
Create structured, declarative and beautifully organized class-based controllers with heavy decorators usage for Express / Koa using TypeScript.
22 lines (21 loc) • 509 B
TypeScript
/**
* Metadata used to store registered middlewares.
*/
export interface MiddlewareMetadataArgs {
/**
* Object class of the middleware class.
*/
target: Function;
/**
* Indicates if this middleware is global, thous applied to all routes.
*/
global: boolean;
/**
* Execution priority of the middleware.
*/
priority: number;
/**
* Indicates if middleware must be executed after routing action is executed.
*/
type: 'before' | 'after';
}