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, {
|
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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user