From 9089698e8df9d0c09c165c45eb6b05335a818699 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 6 Feb 2026 16:55:45 +0000 Subject: health check --- index.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'index.ts') diff --git a/index.ts b/index.ts index 4efc0e55..44d91d93 100644 --- a/index.ts +++ b/index.ts @@ -2,6 +2,7 @@ import app from "$lib/app"; import { admin, auth, optional } from "$lib/auth"; import { fixBolt12, listenForLightning, replay } from "$lib/lightning"; +import { startHealthCheck } from "$lib/health"; import { getLocations } from "$lib/locations"; import nwc from "$lib/nwc"; import { catchUp, check } from "$lib/payments"; @@ -28,6 +29,7 @@ try { catchUp(); nwc(); check(); + startHealthCheck(); } catch (e) { console.log(e); } @@ -36,6 +38,7 @@ setTimeout(listenForLightning, 2000); setInterval(sendHeartbeat, 2000); app.get("/balances", info.balances); +app.get("/health", info.health); app.post("/email", email.send); app.get("/fx", rates.fx); -- cgit v1.2.3