| Location | Name | Required | Meaning |
|---|---|---|---|
| query | cursor | Conditional / optional | {"type":"string"} |
{error:{code,message}} for CloudError failures, attaches Request-Id, and disables caching. Handle 401 by signing in; show role refusal for 403 forbidden, reauthenticate only for step_up_required, and collect a reason for 400 reason_required. A CSRF failure needs a current page/session token, not blind retries. Operation-specific 404/409/413/422/502/503 errors retain their status. Honor Retry-After on 429./** GET /api/admin/config?cursor — the site settings and their history (config.read). */
export const GET = adminRoute("config.read", async (request) => {
const cursor = new URL(request.url).searchParams.get("cursor") ?? undefined;
return adminJson(await siteConfigView({ cursor }));
});