islandflow/apps/web/app/api/admin/synthetic/control/route.ts
dirtydishes 44431c4e66
All checks were successful
CI / Validate (push) Successful in 1m13s
expand ci quality gates
2026-05-30 02:34:28 -04:00

16 lines
421 B
TypeScript

import { proxySyntheticAdminRequest } from "../shared";
export const dynamic = "force-dynamic";
export async function GET(): Promise<Response> {
return proxySyntheticAdminRequest("/admin/synthetic/control", {
method: "GET"
});
}
export async function PUT(req: Request): Promise<Response> {
return proxySyntheticAdminRequest("/admin/synthetic/control", {
method: "PUT",
body: await req.text()
});
}