Skip to content

Commit

Permalink
setting/#39/swagger 옵션 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
gwgw123 committed Dec 20, 2024
1 parent 150128a commit 80618e7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ async function bootstrap() {
.addServer('http://localhost:3000', 'develop')
.build();
const document = SwaggerModule.createDocument(app, config);
SwaggerModule.setup('api', app, document);
SwaggerModule.setup('api', app, document, {
swaggerOptions: {
persistAuthorization: true, // Swagger UI에서 인증 정보를 유지
},
});

app.useGlobalPipes(
new ValidationPipe({
Expand Down

0 comments on commit 80618e7

Please sign in to comment.