add swagger link from docs
This commit is contained in:
@@ -18,14 +18,14 @@ async function bootstrap() {
|
||||
|
||||
const config = new DocumentBuilder()
|
||||
.setTitle('Lendry ID API')
|
||||
.setDescription('REST API для единого входа, безопасности, RBAC и администрирования Lendry ID.')
|
||||
.setDescription('REST API для единого входа, безопасности, RBAC и администрирования.')
|
||||
.setVersion('0.1.0')
|
||||
.addBearerAuth()
|
||||
.build();
|
||||
const document = SwaggerModule.createDocument(app, config);
|
||||
SwaggerModule.setup('docs', app, document, {
|
||||
swaggerOptions: { persistAuthorization: true },
|
||||
customSiteTitle: 'Документация Lendry ID API'
|
||||
customSiteTitle: 'Документация API'
|
||||
});
|
||||
|
||||
await app.listen(process.env.PORT ? Number(process.env.PORT) : 3000);
|
||||
|
||||
Reference in New Issue
Block a user