danexcode
Results
2
comments of
danexcode
My solution was adding the method serveFiles const CSS_URL = 'https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/4.1.0/swagger-ui.min.css'; const options = { customCssUrl: CSS_URL, }; router.use('/api-docs', swaggerUi.serveFiles(swaggerDoc, options), swaggerUi.setup(swaggerDoc, options)); I had to add the styles manually....
I will add to my solution the calling of swagger-ui-dist package, const { SwaggerUIBundle, SwaggerUIStandalonePreset } = require('swagger-ui-dist'); I made tests and that line is necesary