modified: backend/src/server.ts

This commit is contained in:
2026-01-28 01:17:50 +03:00
parent fd08e2c3e6
commit 610bfb24a0

View File

@@ -66,6 +66,10 @@ app.get('/api-docs', async (_req, res, next) => {
const html = swaggerUi.generateHTML(spec, { const html = swaggerUi.generateHTML(spec, {
customCss: '.swagger-ui .topbar { display: none }', customCss: '.swagger-ui .topbar { display: none }',
customSiteTitle: 'KIS API Builder - Документация', customSiteTitle: 'KIS API Builder - Документация',
swaggerOptions: {
persistAuthorization: true, // Keep API key after page refresh
displayRequestDuration: true,
},
}); });
res.send(html); res.send(html);
} catch (error) { } catch (error) {