swagger back on source
This commit is contained in:
parent
73e767322b
commit
4cbb2ba64c
11
src/main.ts
11
src/main.ts
@ -43,20 +43,21 @@ async function bootstrap() {
|
||||
.build();
|
||||
|
||||
const document = SwaggerModule.createDocument(app, config);
|
||||
SwaggerModule.setup('api/v1/api-docs', app, document, {
|
||||
SwaggerModule.setup('api-docs', app, document, {
|
||||
swaggerOptions: {
|
||||
persistAuthorization: true,
|
||||
},
|
||||
customCssUrl: '/api/v1/api-docs/swagger-ui.css',
|
||||
customCssUrl: '/api-docs/swagger-ui.css',
|
||||
customJs: [
|
||||
'/api/v1/api-docs/swagger-ui-bundle.js',
|
||||
'/api/v1/api-docs/swagger-ui-standalone-preset.js',
|
||||
'/api/v1/api-docs/swagger-ui-init.js',
|
||||
'/api-docs/swagger-ui-bundle.js',
|
||||
'/api-docs/swagger-ui-standalone-preset.js',
|
||||
'/api-docs/swagger-ui-init.js',
|
||||
],
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
await app.listen(port);
|
||||
console.log(`✅ P'titsPas API is running on: ${await app.getUrl()}`);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user