Files
minecraft-account-manager/apps/web/src/app/openapi.yaml/route.ts
T
dmg 47782b3ccc
CI / validate (push) Successful in 7m15s
Release / release (push) Successful in 11m32s
feat(api): publish validated OpenAPI contract
2026-09-10 15:11:57 -04:00

14 lines
466 B
TypeScript

import { readFile } from "node:fs/promises";
import { resolve } from "node:path";
export const runtime = "nodejs";
export const dynamic = "force-static";
/** Build-time snapshot of the single source; no YAML parsing or rewriting. */
export async function GET() {
const specification = await readFile(resolve(process.cwd(), "../../openapi.yaml"));
return new Response(specification, {
headers: { "content-type": "application/yaml; charset=utf-8" },
});
}