Skip to content

Commit 71a6501

Browse files
committed
Add version to health
1 parent 4087d88 commit 71a6501

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • app/next-client-app/app/api/health
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { NextResponse } from "next/server";
2+
import packageJson from "../../../package.json";
3+
4+
export async function GET() {
5+
return NextResponse.json({
6+
status: "healthy",
7+
version: packageJson.version,
8+
});
9+
}

0 commit comments

Comments
 (0)