lib/openapi.ts is the machine-readable spec (served at /api/openapi) per AGENTS.md; info.version sourced from package.json. Unit tests pin the spec shape and version sync.
6 lines
115 B
TypeScript
6 lines
115 B
TypeScript
import { openApiSpec } from '@/lib/openapi';
|
|
|
|
export async function GET() {
|
|
return Response.json(openApiSpec);
|
|
}
|