proteje rotas com JwtAuthGuard e documenta endpoints com Swagger

This commit is contained in:
unknown
2025-03-28 19:46:44 -03:00
parent 36aea127c1
commit 5e4ef04b4a
20 changed files with 372 additions and 66 deletions

View File

@@ -5,7 +5,7 @@ import { AuthService } from './auth.service';
import { JwtModule, JwtService } from '@nestjs/jwt';
import { PassportModule } from '@nestjs/passport';
import { UsersModule } from '../users/users.module';
import { JwtStrategy } from '../strategies/jwt-strategy';
@Module({
imports: [
UsersModule,
@@ -20,7 +20,7 @@ import { UsersModule } from '../users/users.module';
}),
],
controllers: [AuthController],
providers: [AuthService],
providers: [AuthService,JwtStrategy],
exports: [AuthService],
})
export class AuthModule {}