GET /api/version
Public JSON version string for deploy checks and client compatibility.
Handler
- Dynamic:
force-dynamic - Method:
GETviawithUniversalEnhancementsNoRateLimit(versionHandler)— no rate limit wrapper.
Response
{ "version": "<semver from package.json>" }
Implementation reads package.json with require('../../../../package.json') inside versionHandler (avoids static import warnings per file comment).
OpenAPI annotations live in the route file (@swagger block).
Sources: src/app/api/version/route.ts, root package.json version field