Files
SpaceWanderer/app/api/openapi/route.ts
T
kamilkrzywda 323b00d692 api: /api/version + OpenAPI 3.x spec generated in code
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.
2026-09-28 15:56:29 +00:00

6 lines
115 B
TypeScript

import { openApiSpec } from '@/lib/openapi';
export async function GET() {
return Response.json(openApiSpec);
}