aboutsummaryrefslogtreecommitdiffstats
path: root/index.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-06 16:55:45 +0000
committerAdam Soltys <[email protected]>2026-02-06 16:55:45 +0000
commit9089698e8df9d0c09c165c45eb6b05335a818699 (patch)
tree592be0e8964857d7be5ca9baacb6143b29903b27 /index.ts
parent0ad6c9ec8a4f91e1d45af4a76330cc3ddcf177a2 (diff)
downloadcoinos-server-9089698e8df9d0c09c165c45eb6b05335a818699.tar.gz
coinos-server-9089698e8df9d0c09c165c45eb6b05335a818699.zip
health check
Diffstat (limited to 'index.ts')
-rw-r--r--index.ts3
1 files changed, 3 insertions, 0 deletions
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);