Add hosted synthetic control plane
This commit is contained in:
parent
af04875107
commit
8dcbcd2201
21 changed files with 3695 additions and 772 deletions
19
apps/web/app/api/admin/synthetic/control/route.ts
Normal file
19
apps/web/app/api/admin/synthetic/control/route.ts
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
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()
|
||||
}
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue