NestJS - Guards
Identify the error in this code snippet applying multiple guards:
@UseGuards([AuthGuard, RolesGuard])
@Get('dashboard')
dashboard() {
return 'Dashboard';
}Identify the error in this code snippet applying multiple guards:
@UseGuards([AuthGuard, RolesGuard])
@Get('dashboard')
dashboard() {
return 'Dashboard';
}15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions