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
117 B
TypeScript
6 lines
117 B
TypeScript
import pkg from '@/package.json';
|
|
|
|
export async function GET() {
|
|
return Response.json({ version: pkg.version });
|
|
}
|