aboutsummaryrefslogtreecommitdiffstats
path: root/payments.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-01-26 20:22:47 -0800
committerAdam Soltys <[email protected]>2020-01-26 20:22:47 -0800
commitc7a01f30d468405857d231e3e9dcf489d465ccf0 (patch)
treec1af32492a1e207f054abe27daf9e68dedb8208c /payments.js
parent9c2a909dc707c3f2baad8f86cbeea54606dbea41 (diff)
downloadcoinos-server-c7a01f30d468405857d231e3e9dcf489d465ccf0.tar.gz
coinos-server-c7a01f30d468405857d231e3e9dcf489d465ccf0.zip
liquid support
Diffstat (limited to 'payments.js')
-rw-r--r--payments.js3
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({