'How to use csurf middleware in tsoa express?

I am new to tsoa and I want to do CSRF implementation in my node app. I have been able to make api using app.use() but I want to write in tsoa. Is there any way?



Solution 1:[1]

In the pre-released version, you can use the @Middlewares() decorator.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Odunsi