aboutsummaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-01-19 16:00:38 -0800
committerAdam Soltys <[email protected]>2023-01-19 16:00:38 -0800
commit5264f702a2217fe8815cb5275aca14a672f6d4bb (patch)
tree1c92a5258cfb92749c4250923f73797284c5d9c7 /index.js
parentef3679051214a9b3047b68f236eac656edcf8d38 (diff)
downloadcoinos-server-5264f702a2217fe8815cb5275aca14a672f6d4bb.tar.gz
coinos-server-5264f702a2217fe8815cb5275aca14a672f6d4bb.zip
refactor payment types
Diffstat (limited to 'index.js')
-rw-r--r--index.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/index.js b/index.js
index 6a34f543..7f97a20d 100644
--- a/index.js
+++ b/index.js
@@ -44,17 +44,14 @@ app.get("/locations", locations.list);
app.get("/invoice", invoices.get);
app.post("/invoice", optional, invoices.create);
-app.post("/send", auth, payments.send);
+app.post("/payments", auth, payments.create);
app.get("/payments", auth, payments.list);
app.get("/payments/:hash", auth, payments.get);
-app.post("/lightning/send", auth, payments.sendLightning);
+app.post("/query", auth, payments.query);
app.get("/pot/:name", payments.pot);
-app.post("/withdraw", auth, payments.withdraw);
+app.post("/take", auth, payments.take);
app.post("/bitcoin", payments.bitcoin);
-app.get("/voucher/:id", payments.voucher);
-app.post("/redeem", optional, payments.redeem);
-
app.get("/me", auth, users.me);
app.get("/users/:key", users.get);
app.post("/register", users.create);