2024-03-13 22:37:18 +09:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2023-11-22 17:08:56 +09: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-02 12:47:07 +09:00
|
|
|
const spec = genOpenapiSpec(config, true);
|
2023-11-22 17:08:56 +09:00
|
|
|
|
2024-03-13 22:37:18 +09:00
|
|
|
writeFileSync('./built/api.json', JSON.stringify(spec), 'utf-8');
|