feat: serve OpenAPI spec JSON at GET /api/v1/openapi

This commit is contained in:
charles-gauthereau
2026-05-28 11:00:04 +02:00
parent 83eb012cb5
commit 294bdfa296
+8
View File
@@ -0,0 +1,8 @@
import { NextResponse } from "next/server";
import { buildSpec } from "@/lib/api-v1/openapi/spec";
export const dynamic = "force-dynamic";
export function GET() {
return NextResponse.json(buildSpec());
}