aboutsummaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-10-24 22:13:47 -0700
committerAdam Soltys <[email protected]>2020-10-24 22:33:52 -0700
commit12091db2a92bc52e3ae97eab98a4d9f7c1a3dd08 (patch)
treee8767781dbd19d62f089277c1bc979ac97aeae48 /index.js
parentae9e9e0fa9cffd2545aa210321b34ce2bb5c4b8b (diff)
downloadcoinos-server-12091db2a92bc52e3ae97eab98a4d9f7c1a3dd08.tar.gz
coinos-server-12091db2a92bc52e3ae97eab98a4d9f7c1a3dd08.zip
funding and withdrawals
Diffstat (limited to 'index.js')
-rw-r--r--index.js9
1 files changed, 5 insertions, 4 deletions
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();