import type { FastifyInstance } from 'fastify'; import { getAllProviders } from '../providers/index.js'; export async function healthRoutes(app: FastifyInstance): Promise { app.get('/health', async () => { const providers = getAllProviders(); return { status: 'ok', service: 'tokenvault', version: '0.1.0', uptime_s: Math.floor(process.uptime()), providers: providers.map(p => ({ name: p.name, configured: p.isConfigured(), models: p.models.length, })), }; }); }