import type { FastifyPluginCallback } from 'fastify'; interface HealthResponse { status: 'ok'; uptime: number; } /** `GET /health` — sonde de disponibilité, sans authentification. */ export const healthRoutes: FastifyPluginCallback = (app, _options, done) => { app.get('/health', (): HealthResponse => ({ status: 'ok', uptime: process.uptime() })); done(); };