diff options
| author | Adam Soltys <[email protected]> | 2023-01-19 16:00:38 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-01-19 16:00:38 -0800 |
| commit | 5264f702a2217fe8815cb5275aca14a672f6d4bb (patch) | |
| tree | 1c92a5258cfb92749c4250923f73797284c5d9c7 /index.js | |
| parent | ef3679051214a9b3047b68f236eac656edcf8d38 (diff) | |
| download | coinos-server-5264f702a2217fe8815cb5275aca14a672f6d4bb.tar.gz coinos-server-5264f702a2217fe8815cb5275aca14a672f6d4bb.zip | |
refactor payment types
Diffstat (limited to 'index.js')
| -rw-r--r-- | index.js | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -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); |
