mirror of
https://github.com/skidoodle/budgetable.git
synced 2026-04-28 07:47:35 +02:00
fix healthcheck
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { ResponseHelper } from "@/lib/helper";
|
||||
import { RESPONSE } from "@/lib/const";
|
||||
|
||||
const { INTERNAL_SERVER_ERROR } = RESPONSE;
|
||||
|
||||
export async function GET(): Promise<Response> {
|
||||
try {
|
||||
return ResponseHelper.success("Healthy");
|
||||
} catch (error) {
|
||||
console.error("Health check failed:", error);
|
||||
return ResponseHelper.error(INTERNAL_SERVER_ERROR, error);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user