Files
budgetable/src/app/health/route.ts
T
2025-01-21 05:18:47 +01:00

14 lines
372 B
TypeScript

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);
}
}