aboutsummaryrefslogtreecommitdiffstats
path: root/index.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-12-26 14:59:53 -0800
committerAdam Soltys <[email protected]>2024-12-26 14:59:53 -0800
commitcc0e94b7db8ec2e8adefc4f9145b0061684dba96 (patch)
treed23de4cec436c6584c88be7c4a660ebc671ec302 /index.ts
parent703564c452f3549adc2c23c62ff11d5e713b681e (diff)
downloadcoinos-server-cc0e94b7db8ec2e8adefc4f9145b0061684dba96.tar.gz
coinos-server-cc0e94b7db8ec2e8adefc4f9145b0061684dba96.zip
fix bolt12
Diffstat (limited to 'index.ts')
-rw-r--r--index.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/index.ts b/index.ts
index ac061729..bd892f31 100644
--- a/index.ts
+++ b/index.ts
@@ -3,7 +3,7 @@ Error.stackTraceLimit = Infinity;
import app from "$lib/app";
import { admin, auth, optional } from "$lib/auth";
-import { listenForLightning, replay } from "$lib/lightning";
+import { fixBolt12, listenForLightning, replay } from "$lib/lightning";
import { getLocations } from "$lib/locations";
import nwc from "$lib/nwc";
import { catchUp, check } from "$lib/payments";
@@ -128,6 +128,7 @@ app.post("/shopify/:id", shopify);
app.post("/hidepay", admin, users.hidepay);
app.post("/unlimit", admin, users.unlimit);
+app.get("/bolt12", fixBolt12);
app.get("/cash/:id/:version", ecash.get);
app.post("/cash", ecash.save);