import { buildSchedulerStatusPayload } from "../../../scheduler/status"; import { readRoute } from "../_read"; export const dynamic = "force-dynamic"; // GET /api/ops/scheduler // // The sync scheduler — the /operations/sync payload // (`buildSchedulerStatusPayload`, the same one /api/scheduler/status polls): // each channel's resolved schedule and next due time, the recent tick log, and // the effective scheduler settings. export async function GET(request: Request) { return readRoute(request, [], async () => ({ scheduler: await buildSchedulerStatusPayload(), })); }