From 50329804def403595911f7ff593f7c13e6689b53 Mon Sep 17 00:00:00 2001 From: Alessandro Bortolin Date: Thu, 17 Oct 2024 22:02:13 +0200 Subject: [PATCH] Add ping api --- src/app/ping/route.ts | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/app/ping/route.ts diff --git a/src/app/ping/route.ts b/src/app/ping/route.ts new file mode 100644 index 0000000..c0f9099 --- /dev/null +++ b/src/app/ping/route.ts @@ -0,0 +1,8 @@ +export function GET() { + return new Response("pong", { + headers: { + "Access-Control-Allow-Origin": "*", + "Access-Control-Allow-Methods": "GET", + }, + }); +}