aboutsummaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-02-01 11:07:37 -0800
committerAdam Soltys <[email protected]>2023-02-01 11:07:37 -0800
commit1ae65a5a143d218e21828e297fd7d0ba9ab372bf (patch)
tree6e425803038c575f87e14ae3392abae16d7ccf40 /index.js
parent2eb199b8609b0976b4800815edcf73aa3da4b464 (diff)
downloadcoinos-server-1ae65a5a143d218e21828e297fd7d0ba9ab372bf.tar.gz
coinos-server-1ae65a5a143d218e21828e297fd7d0ba9ab372bf.zip
classic invoices
Diffstat (limited to 'index.js')
-rw-r--r--index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/index.js b/index.js
index 2c59b8e6..ed4e0827 100644
--- a/index.js
+++ b/index.js
@@ -42,8 +42,9 @@ app.post("/event", nostr.broadcast);
app.get("/locations", locations.list);
-app.get("/invoice", invoices.get);
+app.get("/invoice/:hash", invoices.get);
app.post("/invoice", optional, invoices.create);
+app.get("/invoice/classic/:username", invoices.classic);
app.post("/payments", auth, payments.create);
app.get("/payments", auth, payments.list);