diff options
| author | Adam Soltys <[email protected]> | 2020-01-26 20:22:47 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-01-26 20:22:47 -0800 |
| commit | c7a01f30d468405857d231e3e9dcf489d465ccf0 (patch) | |
| tree | c1af32492a1e207f054abe27daf9e68dedb8208c /payments.js | |
| parent | 9c2a909dc707c3f2baad8f86cbeea54606dbea41 (diff) | |
| download | coinos-server-c7a01f30d468405857d231e3e9dcf489d465ccf0.tar.gz coinos-server-c7a01f30d468405857d231e3e9dcf489d465ccf0.zip | |
liquid support
Diffstat (limited to 'payments.js')
| -rw-r--r-- | payments.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/payments.js b/payments.js index 3f2a8d17..9866d244 100644 --- a/payments.js +++ b/payments.js @@ -6,7 +6,7 @@ module.exports = async (app, auth, addresses, bc, db, emit, seen, payments) => { const lnb = await createLnrpc(config.lnb); require("./bitcoinPayments")(app, bc, db, addresses, payments, emit); - require("./liquidPayments")(app, bc, db, addresses, payments, emit); + require("./liquidPayments")(app, db, addresses, payments, emit); require("./lightningPayments")(app, db, lna, lnb, emit, payments); app.post( @@ -16,6 +16,7 @@ module.exports = async (app, auth, addresses, bc, db, emit, seen, payments) => { ); app.post("/payUser", auth, require("./payUser")(app, db, lnb)); app.post("/sendCoins", auth, require("./sendCoins")(app, bc, db, emit)); + app.post("/sendLiquid", auth, require("./sendLiquid")(app, db, emit)); app.post("/addInvoice", auth, require("./addInvoice")(app, db, lnb)); app.get("/payments", auth, async (req, res) => { const payments = await db.Payment.findAll({ |
