aboutsummaryrefslogtreecommitdiffstats
path: root/index.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-07-11 09:17:05 -0700
committerAdam Soltys <[email protected]>2026-07-11 09:17:05 -0700
commit2e90d709178ac718e4f32229951e6ea38dfcc371 (patch)
tree3724e212ba6b4eaa15f1326086c6badb0f4f4e4e /index.ts
parentb9791efba00cd00837699fba92a8d27528968395 (diff)
parentd466aab4451a89b2d69a2618f0a739b2e89903c5 (diff)
downloadcoinos-server-2e90d709178ac718e4f32229951e6ea38dfcc371.tar.gz
coinos-server-2e90d709178ac718e4f32229951e6ea38dfcc371.zip
Merge remote-tracking branch 'origin/master'
# Conflicts: # lib/payments.ts
Diffstat (limited to 'index.ts')
-rw-r--r--index.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/index.ts b/index.ts
index 808252de..cbe08b3a 100644
--- a/index.ts
+++ b/index.ts
@@ -18,6 +18,7 @@ import lnurl from "$routes/lnurl";
import locations from "$routes/locations";
import nostr from "$routes/nostr";
import payments from "$routes/payments";
+import preimages from "$routes/preimages";
import rates from "$routes/rates";
import shopify from "$routes/shopify";
import square from "$routes/square";
@@ -52,6 +53,10 @@ app.post("/invoice", { ...optional, config: { rateLimit: { max: 30, timeWindow:
app.post("/invoice/:id", { ...optional, config: { rateLimit: { max: 30, timeWindow: 10000, keyGenerator: (req) => `invoiceupdate:${(req.headers["cf-connecting-ip"] as string) || req.ip}` } } }, invoices.update);
app.post("/sign", auth, invoices.sign);
+app.get("/preimages", auth, preimages.list);
+app.post("/preimages", auth, preimages.add);
+app.post("/preimages/delete", auth, preimages.clear);
+
app.get("/assetlinks.json", (_, res) => res.sendFile("assetlinks.json"));
app.get("/nostr.json", nostr.identities);
app.get("/profile/:profile", nostr.profile);