Closed RevanthGovindan closed 2 years ago
Hello there RevanthGovindan 👋
Thank you for opening your very first issue in this project.
We will try to get back to you as soon as we can.👀
Hello, any news on this? I have the same problem, middleware code doesn't run at all
@wuelcas please use the latest version (4.0.0-beta.0) of tsoa, that was the mistake i have done.
@RevanthGovindan I'm using version 4.1.0 but it still doesn't work for me. Do you mind sharing any examples?
middleware is not getting called in controllers and methods
function Middlewares(...mws: RequestHandler[]) { return GenericMiddlewares(...mws);
}
function testMiddleware(key: string) { return async (req: ExpressRequest, res: ExpressResponse, next: ExpressNextFunction) => { console.log("middleware log"); next(); }; } @GenericMiddlewares(testMiddleware('route'))
@Route("users")
export class UsersController extends Controller {
}