SPB Git
254 B · 4 lines typescript
1import { authorsWithCounts } from "@/lib/papers/queries";2import { json, limited, tooMany } from "@/lib/api";3export async function GET(req: Request) { if (limited(req, "api")) return tooMany(); return json(await authorsWithCounts(), { maxAge: 120 }); }4
Files · main
Menu

Theme