From 33779697c7c97c9394bb8f6c7e08bd82e2f3a87c Mon Sep 17 00:00:00 2001 From: Marc Date: Sat, 21 Sep 2024 14:46:19 +0200 Subject: feature(web): Add healthecheck api endpoint (#332) * add healthecheck api endpoint * Remove meili healthcheck * Replace unnecessary variable with static content --------- Co-authored-by: Wuast94 --- apps/web/app/api/health/route.ts | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 apps/web/app/api/health/route.ts (limited to 'apps/web/app') diff --git a/apps/web/app/api/health/route.ts b/apps/web/app/api/health/route.ts new file mode 100644 index 00000000..8e5326c6 --- /dev/null +++ b/apps/web/app/api/health/route.ts @@ -0,0 +1,8 @@ +import { NextRequest, NextResponse } from "next/server"; + +export const GET = async (_req: NextRequest) => { + return NextResponse.json({ + status: "ok", + message: "Web app is working", + }); +}; -- cgit v1.2.3-70-g09d2