import { Router } from 'express';

const router = Router();
const startedAt = Date.now();
const VERSION = '1.0.0';

router.get('/health', (_req, res) => {
  res.json({
    status: 'ok',
    version: VERSION,
    uptime: Math.floor((Date.now() - startedAt) / 1000),
  });
});

export default router;
