2024-03-13 08:37:18 -05:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2023-11-22 02:08:56 -06:00
|
|
|
import { loadConfig } from './built/config.js'
|
|
|
|
import { genOpenapiSpec } from './built/server/api/openapi/gen-spec.js'
|
|
|
|
import { writeFileSync } from "node:fs";
|
|
|
|
|
|
|
|
const config = loadConfig();
|
2024-02-01 21:47:07 -06:00
|
|
|
const spec = genOpenapiSpec(config, true);
|
2023-11-22 02:08:56 -06:00
|
|
|
|
2024-03-13 08:37:18 -05:00
|
|
|
writeFileSync('./built/api.json', JSON.stringify(spec), 'utf-8');
|