Remove css path

This commit is contained in:
ricardo 2022-05-02 10:42:22 -04:00
parent e53e9468c6
commit a3d0a71719

View file

@ -60,7 +60,8 @@ function createApiRouter(
export const loadPublicApiVersions = async (): Promise<express.Router[]> => { export const loadPublicApiVersions = async (): Promise<express.Router[]> => {
const swaggerThemePath = path.join(__dirname, 'swaggerTheme.css'); const swaggerThemePath = path.join(__dirname, 'swaggerTheme.css');
const folders = await fs.readdir(__dirname); const folders = await fs.readdir(__dirname);
const css = (await fs.readFile(swaggerThemePath)).toString(); // const css = (await fs.readFile(swaggerThemePath)).toString();
const css = '';
const versions = folders.filter((folderName) => folderName.startsWith('v')); const versions = folders.filter((folderName) => folderName.startsWith('v'));
const apiRouters: express.Router[] = []; const apiRouters: express.Router[] = [];
for (const version of versions) { for (const version of versions) {