mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 02:23:08 +02:00
8 lines
293 B
JavaScript
8 lines
293 B
JavaScript
|
import { loadConfig } from './built/config.js'
|
||
|
import { genOpenapiSpec } from './built/server/api/openapi/gen-spec.js'
|
||
|
import { writeFileSync } from "node:fs";
|
||
|
|
||
|
const config = loadConfig();
|
||
|
const spec = genOpenapiSpec(config);
|
||
|
|
||
|
writeFileSync('./built/api.json', JSON.stringify(spec), 'utf-8');
|