From b1339e2ce9cae0df3c9fe2e1f5c0597975dbf125 Mon Sep 17 00:00:00 2001 From: Manuel Bustillo Date: Sat, 28 Dec 2024 11:42:22 +0100 Subject: [PATCH 1/2] Define a health endpoint for docker compose --- app/api/health/route.ts | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 app/api/health/route.ts diff --git a/app/api/health/route.ts b/app/api/health/route.ts new file mode 100644 index 0000000..6a3d203 --- /dev/null +++ b/app/api/health/route.ts @@ -0,0 +1,5 @@ +import { NextResponse } from "next/server"; + +export function GET() { + return NextResponse.json({}); +} \ No newline at end of file -- 2.47.1 From 07476221c3a3af0a5f8593054d2f732875b938a6 Mon Sep 17 00:00:00 2001 From: Manuel Bustillo Date: Sat, 28 Dec 2024 10:46:08 +0000 Subject: [PATCH 2/2] Add copyright notice --- app/api/health/route.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/api/health/route.ts b/app/api/health/route.ts index 6a3d203..4dc1a10 100644 --- a/app/api/health/route.ts +++ b/app/api/health/route.ts @@ -1,3 +1,5 @@ +/* Copyright (C) 2024 Manuel Bustillo*/ + import { NextResponse } from "next/server"; export function GET() { -- 2.47.1