From 12091db2a92bc52e3ae97eab98a4d9f7c1a3dd08 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 24 Oct 2020 22:13:47 -0700 Subject: funding and withdrawals --- index.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'index.js') diff --git a/index.js b/index.js index 115fdc26..a84df00d 100644 --- a/index.js +++ b/index.js @@ -12,7 +12,7 @@ l = require("pino")(); config = require("./config"); networks = []; prod = process.env.NODE_ENV === "production"; -fail = (msg) => { +fail = msg => { throw new Error(msg); }; @@ -26,7 +26,7 @@ if (config.liquid) networks.push("liquid"); if (config.lna) networks.push("lightning"); SATS = 100000000; -toSats = (n) => parseInt((n * SATS).toFixed()); +toSats = n => parseInt((n * SATS).toFixed()); app = express(); app.enable("trust proxy"); @@ -53,6 +53,7 @@ require("./routes/payments"); require("./routes/info"); require("./routes/swaps"); require("./routes/users"); +require("./routes/funding"); if (config.lnurl) { require("./routes/lnurl"); @@ -63,7 +64,7 @@ app.use((err, req, res, next) => { path: req.path, body: req.body, msg: err.message, - stack: err.stack, + stack: err.stack }; if (req.user) details.username = req.user.username; @@ -71,7 +72,7 @@ app.use((err, req, res, next) => { l.error("Error: ", details); res.status(500); res.set({ - "Cache-Control": "no-cache", + "Cache-Control": "no-cache" }); res.send(err.message); return res.end(); -- cgit v1.2.3