fix swagger bearer authorization

This commit is contained in:
2026-05-12 15:49:46 +03:30
parent 35e436ae9e
commit abb387e743
+9 -1
View File
@@ -9,7 +9,15 @@ async function bootstrap() {
.setTitle('Montime API')
.setDescription('Local services super app API')
.setVersion('1.0')
.addBearerAuth()
.addBearerAuth(
{
type: 'http',
scheme: 'bearer',
bearerFormat: 'JWT',
},
'bearer',
)
.addSecurityRequirements('bearer')
.build();
const swaggerDocument = SwaggerModule.createDocument(app, swaggerConfig);