diff --git a/packages/cli/src/PublicApi/index.ts b/packages/cli/src/PublicApi/index.ts index 1ea0225a8f..93dc465699 100644 --- a/packages/cli/src/PublicApi/index.ts +++ b/packages/cli/src/PublicApi/index.ts @@ -58,14 +58,15 @@ function createApiRouter( } export const loadPublicApiVersions = async (): Promise => { - const swaggerThemePath = path.join(__dirname, 'swaggerTheme.css'); - const folders = await fs.readdir(__dirname); - const css = (await fs.readFile(swaggerThemePath)).toString(); - const versions = folders.filter((folderName) => folderName.startsWith('v')); - const apiRouters: express.Router[] = []; - for (const version of versions) { - const openApiPath = path.join(__dirname, version, 'openapi.yml'); - apiRouters.push(createApiRouter(version, openApiPath, __dirname, css)); - } - return apiRouters; + // const swaggerThemePath = path.join(__dirname, 'swaggerTheme.css'); + // const folders = await fs.readdir(__dirname); + // const css = (await fs.readFile(swaggerThemePath)).toString(); + // const versions = folders.filter((folderName) => folderName.startsWith('v')); + // const apiRouters: express.Router[] = []; + // for (const version of versions) { + // const openApiPath = path.join(__dirname, version, 'openapi.yml'); + // apiRouters.push(createApiRouter(version, openApiPath, __dirname, css)); + // } + // return apiRouters; + return []; };