diff --git a/packages/cli/src/PublicApi/index.ts b/packages/cli/src/PublicApi/index.ts index 26f9757a21776..d7054d892953b 100644 --- a/packages/cli/src/PublicApi/index.ts +++ b/packages/cli/src/PublicApi/index.ts @@ -49,6 +49,10 @@ async function createApiRouter( ); } + apiController.get(`/${publicApiEndpoint}/${version}/openapi.yml`, (req, res) => { + res.sendFile(openApiSpecPath); + }); + apiController.use( `/${publicApiEndpoint}/${version}`, express.json(),