@tsed/common
Version:
A TypeScript Framework on top of Express
23 lines (22 loc) • 460 B
TypeScript
/**
* 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('/')
* @Use(Middleware1)
* export class Ctrl {
*
* @Get('/')
* @Use(Middleware2)
* get() { }
* }
*
* ```
*
* @returns {Function}
* @param args
* @decorator
* @operation
*/
export declare function Use(...args: any[]): Function;