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);
|
||||
|
||||
@@ -27,7 +27,7 @@ export function DocsHeader() {
|
||||
|
||||
<div className="flex items-center gap-2">
|
||||
<Button variant="ghost" size="sm" asChild className="hidden md:inline-flex">
|
||||
<a href={`${apiUrl}/api`} target="_blank" rel="noreferrer">
|
||||
<a href={`${apiUrl}/docs`} target="_blank" rel="noreferrer">
|
||||
Swagger
|
||||
<ExternalLink className="h-3.5 w-3.5" />
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user