import type { FastifyInstance } from 'fastify';
import { pingDb } from '../db.js';

export function registerHealthRoutes(app: FastifyInstance): void {
  app.get('/api/term/health', async () => {
    const dbOk = await pingDb();
    return { ok: true, db: dbOk };
  });
}
