fix swagger bearer authorization
This commit is contained in:
+9
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user