Skip to content

Commit d6a02ae

Browse files
committed
24.11.02
1 parent 4f9bf19 commit d6a02ae

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/utils/swagger.ts

+9
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ export function setupSwagger(app: INestApplication): void {
1111
.setTitle('OODD API Docs')
1212
.setDescription('OODD API 문서입니다.')
1313
.setVersion('1.0.0')
14+
.addBearerAuth(
15+
{
16+
type: 'http',
17+
scheme: 'bearer',
18+
name: 'JWT',
19+
in: 'header',
20+
},
21+
'access-token',
22+
)
1423
.build();
1524

1625
const document = SwaggerModule.createDocument(app, options);

0 commit comments

Comments
 (0)