#How can I use @UseGurads in module file

4 messages · Page 1 of 1 (latest)

copper torrent
#

Hello this is the code where it contains many controllers. I want to apply a global guard for these controllers. how i can do it?

slim elk
#

Sadly, you can't. There's nothing like module-scoped guards in Nest. If you don't want to apply it globally for the whole app, you'll have to apply it to each controller in that module individually.

frosty tartan
slim elk