mirror of
https://github.com/skidoodle/budgetable.git
synced 2026-04-27 23:37:36 +02:00
14 lines
372 B
TypeScript
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);
|
|
}
|
|
}
|