import { adminGateway } from '../lib/platform/admin-gateway.js';
export async function healthRoutes(app) {
    app.get('/health', async () => ({
        status: 'ok',
        version: '0.1.0',
        uptime: process.uptime(),
        admin: {
            configured: adminGateway.isConfigured(),
        },
    }));
    // /health/deep — opcional, mais lento; bate no admin para confirmar
    app.get('/health/deep', async () => ({
        status: 'ok',
        version: '0.1.0',
        uptime: process.uptime(),
        admin: {
            configured: adminGateway.isConfigured(),
            reachable: await adminGateway.adminReachable(),
        },
    }));
}
//# sourceMappingURL=health.js.map