/** * llmindex.io — GET /api/v1/benchmark/progress (live run status, uncached) * Author: Simon-Pierre Boucher * Contact: contact@spboucher.ai * License: Proprietary — © Simon-Pierre Boucher, all rights reserved */ import { type NextRequest } from 'next/server'; import { readBenchmarkProgress } from '@/lib/progress'; import { apiJson } from '@/lib/api'; import { rateLimit } from '@/lib/rate-limit'; export const dynamic = 'force-dynamic'; export async function GET(req: NextRequest) { const limited = await rateLimit(req); if (limited) return limited; const progress = await readBenchmarkProgress(); return apiJson({ progress }); }