aboutsummaryrefslogtreecommitdiffstats
path: root/index.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-11-21 10:47:25 -0800
committerAdam Soltys <[email protected]>2024-11-21 10:47:25 -0800
commit3b15d16339c9209f307f8453af91fba15f3d340c (patch)
treed9f4ca8879c6a0b29ca8f6ad795c2154387626fd /index.ts
parent5642b90b54084061cdbbf6f1dc70c38245b05d5f (diff)
downloadcoinos-server-3b15d16339c9209f307f8453af91fba15f3d340c.tar.gz
coinos-server-3b15d16339c9209f307f8453af91fba15f3d340c.zip
wip
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 8c4b7b11..adb13863 100644
--- a/index.ts
+++ b/index.ts
@@ -56,7 +56,7 @@ app.post("/event", auth, nostr.publish);
app.get("/info", payments.info);
app.post("/payments", auth, payments.create);
app.get("/payments", auth, payments.list);
-app.get("/payments/:hash", auth, payments.get);
+app.get("/payments/:hash", payments.get);
app.post("/parse", auth, payments.parse);
app.get("/fund/:name", payments.fund);
app.get("/fund/:name/withdraw", payments.withdraw);
@@ -125,6 +125,7 @@ app.post("/unlimit", admin, users.unlimit);
app.get("/cash/:id/:version", ecash.get);
app.post("/cash", ecash.save);
+app.post("/cash/pay", ecash.pay);
app.post("/claim", auth, ecash.claim);
app.post("/mint", auth, ecash.mint);
app.post("/melt", auth, ecash.melt);