Remove unused journal health route file
api.health.ts was never registered in routes.ts — the server.ts handler intercepts /api/health before React Router sees it. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
be13145072
commit
f80ed10a8b
1 changed files with 0 additions and 13 deletions
|
|
@ -1,13 +0,0 @@
|
|||
import { data } from "react-router";
|
||||
import { withDb } from "@trails-cool/db";
|
||||
|
||||
const version = process.env.SENTRY_RELEASE ?? "dev";
|
||||
|
||||
export async function loader() {
|
||||
try {
|
||||
await withDb(async () => {});
|
||||
return data({ status: "ok", version, db: "connected" });
|
||||
} catch {
|
||||
return data({ status: "degraded", version, db: "unreachable" }, { status: 503 });
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue