refactor: open api (#6334)

This commit is contained in:
Jason Rasmussen 2024-01-12 07:36:27 -05:00 committed by GitHub
parent a1523a9af0
commit 2439c5ab57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
83 changed files with 404 additions and 19672 deletions

View file

@ -197,7 +197,7 @@ export const useSwagger = (app: INestApplication, isDev: boolean) => {
if (isDev) {
// Generate API Documentation only in development mode
const outputPath = path.resolve(process.cwd(), 'immich-openapi-specs.json');
const outputPath = path.resolve(process.cwd(), '../open-api/immich-openapi-specs.json');
writeFileSync(outputPath, JSON.stringify(patchOpenAPI(doc), null, 2), { encoding: 'utf8' });
}
};