Skip to content

Commit

Permalink
healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
pilinux committed Sep 1, 2023
1 parent 1e2fd4f commit 3e6d1a4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/routes/healthcheck.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// for health check
import { json } from "@remix-run/node";

export let loader = async ({ request }) => {
const isHealthy = true;

if (isHealthy) {
return json({ message: "OK" }, 200);
}

return json({ message: "Service Unavailable" }, 503);
};

0 comments on commit 3e6d1a4

Please sign in to comment.