UNPKG

@tsed/common

Version:
22 lines (21 loc) 537 B
/** * Mounts the specified middleware function or functions at the specified path: the middleware function is executed when * the base of the requested path matches `path. * * ```typescript * @Controller('/') * @UseBefore(Middleware1) // called only one time before all endpoint * export class Ctrl { * * @Get('/') * @UseBefore(Middleware2) * get() { } * } * ``` * * @returns {function(any, any, any): *} * @param args * @decorator * @operation */ export declare function UseBefore(...args: any[]): Function;