"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const express_1 = require("express"); const router = (0, express_1.Router)(); /** * GET /api/version * Returns build version information for display in admin UI */ router.get('/', async (req, res) => { try { const versionInfo = { build_version: process.env.APP_BUILD_VERSION || 'dev', git_sha: process.env.APP_GIT_SHA || 'local', build_time: process.env.APP_BUILD_TIME || new Date().toISOString(), image_tag: process.env.CONTAINER_IMAGE_TAG || 'local', }; res.json(versionInfo); } catch (error) { console.error('Error fetching version info:', error); res.status(500).json({ error: 'Failed to fetch version info' }); } }); exports.default = router;