import { seriesWithCounts } from "@/lib/papers/queries"; import { json, limited, tooMany } from "@/lib/api"; export async function GET(req: Request) { if (limited(req, "api")) return tooMany(); return json(await seriesWithCounts(), { maxAge: 120 }); }