Method decorator which accepts an array of Express middleware callback functions to run prior to the Express route being executed
@Controller('/api', 'User', 'User Management Routes')class User { @Middleware([verifyAuthenticated, checkAdminPermissions], [{ "bearerAuth": [] }]) @HttpPost('/user', 'Create a new user') async createUser( @RequestParam('username') username: string, @RequestParam('password') password: string, @Response() res: ExpressResponse ): Promise<void> { ... }}
Class method to be registered with the Express application as a route
Array of Express middleware callback functions
Optional
Generated using TypeDoc
Method decorator which accepts an array of Express middleware callback functions to run prior to the Express route being executed
Example