modified: backend/src/server.ts
This commit is contained in:
@@ -66,6 +66,10 @@ app.get('/api-docs', async (_req, res, next) => {
|
||||
const html = swaggerUi.generateHTML(spec, {
|
||||
customCss: '.swagger-ui .topbar { display: none }',
|
||||
customSiteTitle: 'KIS API Builder - Документация',
|
||||
swaggerOptions: {
|
||||
persistAuthorization: true, // Keep API key after page refresh
|
||||
displayRequestDuration: true,
|
||||
},
|
||||
});
|
||||
res.send(html);
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user