In our index.js file:
const swaggerUi = require('swagger-ui-express');
...
router.use('/api-docs', swaggerUi.serve);
router.get('/api-docs', swaggerUi.setup(swaggerDocument, { customCssUrl: '/docs.css' }));
In the same top-level directory as our index.js file is our docs.css file
h2 {
color: darkred;
}
CBB Analytics API is an h2 element, clearly not darkred, clearly the doc is not applying the styles because of the error message in the console. How can we troubleshoot this issue?
