import { Get , Controller , UseGuards , Req } from '@nestjs/common' ; import { AuthGuard } from '@nestjs/passport' ; import { ApiBearerAuth } from '@nestjs/swagger' ; @ Controller ( ) export class AppController { constructor ( ) { } @ Get ( ) @ UseGuards ( AuthGuard ( 'jwt' ) ) @ ApiBearerAuth ( ) async root ( ) { return [ { oooPsie : 'Yo man !' } ] ; } }