refactor: open api ()

This commit is contained in:
Jason Rasmussen 2024-01-12 07:36:27 -05:00 committed by GitHub
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

@ -0,0 +1,9 @@
const spec = require('../immich-openapi-specs.json');
const pkg = require('../../server/package.json');
const path = require('path');
const fs = require('fs');
spec.info.version = pkg.version;
fs.writeFileSync(
path.join(__dirname, '../immich-openapi-specs.json'),
JSON.stringify(spec, null, 2)
);