mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
refactor: open api (#6334)
This commit is contained in:
parent
a1523a9af0
commit
2439c5ab57
83 changed files with 404 additions and 19672 deletions
|
|
@ -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' });
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue