Put in order · NestJS course · Module 2: Routing and Request Lifecycle
Basics: UseGuards Decorator
Arrange the elements of using the @UseGuards decorator on a controller:
Items to put in order
- @UseGuards(
- )
- AuthGuard
Show the answer
Correct order:
- @UseGuards(
- AuthGuard
- )