Skip to content

Commit 9633f5f

Browse files
committed
add endpoint for running Gofr metrics
1 parent 29603a7 commit 9633f5f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/app/api/ping/down/route.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { NextResponse } from "next/server";
2+
3+
export async function POST() {
4+
return NextResponse.json({ message: "Ping Down - Server Shutdown" });
5+
}

src/app/api/ping/up/route.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { NextResponse } from "next/server";
2+
3+
export async function POST() {
4+
return NextResponse.json({ message: "Ping Up - Server Started" });
5+
}

0 commit comments

Comments
 (0)