Skip to content

Open-source status page, incident response and uptime monitoring

🏓 ping edge (#666)

Thibault Le Ouayef50ce0541c9
diff --git a/apps/web/src/app/api/ping/edge/route.ts b/apps/web/src/app/api/ping/edge/route.ts
new file mode 100644
index 000000000..496055c25
--- /dev/null
+++ b/apps/web/src/app/api/ping/edge/route.ts
@@ -0,0 +1,13 @@
+import { NextResponse } from "next/server";
+
+export const runtime = "edge";
+export const dynamic = "force-dynamic";
+
+export async function GET() {
+ return NextResponse.json({ ping: "pong" }, { status: 200 });
+}
+
+export async function POST(req: Request) {
+ const body = await req.json();
+ return NextResponse.json({ ping: body }, { status: 200 });
+}