aboutsummaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-01-17 16:05:00 -0800
committerAdam Soltys <[email protected]>2023-01-17 16:05:00 -0800
commit33229e38a910e26083175a3e272278745378114c (patch)
treec63b3fc8c5e9563ae0aa694617ebd3419a3fac8b /index.js
parent98a611d8965d8b896d124c78bdc1f7ceea6593cf (diff)
downloadcoinos-server-33229e38a910e26083175a3e272278745378114c.tar.gz
coinos-server-33229e38a910e26083175a3e272278745378114c.zip
redlock
Diffstat (limited to 'index.js')
-rw-r--r--index.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/index.js b/index.js
index ca33b646..fd365e1a 100644
--- a/index.js
+++ b/index.js
@@ -8,6 +8,7 @@ import { getRates, sendRates } from "$lib/rates";
import { sendHeartbeat } from "$lib/sockets";
import email from "$routes/email";
+import info from "$routes/info";
import locations from "$routes/locations";
import nostr from "$routes/nostr";
import rates from "$routes/rates";
@@ -25,6 +26,7 @@ getRates();
setInterval(sendRates, 1000);
setInterval(sendHeartbeat, 2000);
+app.get("/balances", info.balances);
app.post("/email", email.send);
app.get("/rate", rates.last);