fix swagger bearer authorization
This commit is contained in:
+9
-1
@@ -9,7 +9,15 @@ async function bootstrap() {
|
|||||||
.setTitle('Montime API')
|
.setTitle('Montime API')
|
||||||
.setDescription('Local services super app API')
|
.setDescription('Local services super app API')
|
||||||
.setVersion('1.0')
|
.setVersion('1.0')
|
||||||
.addBearerAuth()
|
.addBearerAuth(
|
||||||
|
{
|
||||||
|
type: 'http',
|
||||||
|
scheme: 'bearer',
|
||||||
|
bearerFormat: 'JWT',
|
||||||
|
},
|
||||||
|
'bearer',
|
||||||
|
)
|
||||||
|
.addSecurityRequirements('bearer')
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
const swaggerDocument = SwaggerModule.createDocument(app, swaggerConfig);
|
const swaggerDocument = SwaggerModule.createDocument(app, swaggerConfig);
|
||||||
|
|||||||
Reference in New Issue
Block a user