aboutsummaryrefslogtreecommitdiffstats
path: root/index.ts
diff options
context:
space:
mode:
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);