Files
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
117 B
TypeScript

import pkg from '@/package.json';
export async function GET() {
return Response.json({ version: pkg.version });
}