import { checkHealth } from '@/lib/directus';
import { NextResponse } from 'next/server';

export const dynamic = 'force-dynamic';

export async function GET() {
    const health = await checkHealth();
    return NextResponse.json(health, { status: health.status === 'ok' ? 200 : 503 });
}
