swagger please work
This commit is contained in:
parent
43607842e6
commit
670a8c5b46
12
src/main.ts
12
src/main.ts
@ -45,7 +45,17 @@ async function bootstrap() {
|
||||
.build();
|
||||
|
||||
const document = SwaggerModule.createDocument(app, config);
|
||||
SwaggerModule.setup('api-docs', app, document);
|
||||
SwaggerModule.setup('api-docs', app, document, {
|
||||
swaggerOptions: {
|
||||
persistAuthorization: true,
|
||||
},
|
||||
customCssUrl: '/api-docs/swagger-ui.css',
|
||||
customJs: [
|
||||
'/api-docs/swagger-ui-bundle.js',
|
||||
'/api-docs/swagger-ui-standalone-preset.js',
|
||||
'/api-docs/swagger-ui-init.js',
|
||||
],
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user