fix healthcheck

This commit is contained in:
2025-01-21 05:18:47 +01:00
parent ef6823623a
commit b710663e14
2 changed files with 16 additions and 35 deletions
+13
View File
@@ -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);
}
}