Files
buzz/app/api/amber/sync/route.ts
T
dmgnr d3dccdf89c
Build and Push Image / push (push) Has been cancelled
Build and Push Image / build-frontend (push) Has been cancelled
Build and Push Image / build-backend (push) Has been cancelled
lets break commit name rule for no reason
fix: mutation forms are cached with same form key
fix: change amber from commad
2026-08-27 19:59:41 +07:00

14 lines
414 B
TypeScript

import { actionLog } from "@/lib/api";
import { adminCheck } from "@/lib/auth";
import { syncAmber } from "@/util/sync";
export async function GET() {
if (!(await adminCheck()))
return new Response("Unauthorized", { status: 401 });
await syncAmber();
await actionLog("Triggered an Amber sync from API");
return new Response(
"OK(log is wip, check `kubectl logs -fn buzz deployments/app`)",
);
}