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