diff options
| author | Adam Soltys <[email protected]> | 2020-10-24 22:13:47 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-10-24 22:33:52 -0700 |
| commit | 12091db2a92bc52e3ae97eab98a4d9f7c1a3dd08 (patch) | |
| tree | e8767781dbd19d62f089277c1bc979ac97aeae48 /index.js | |
| parent | ae9e9e0fa9cffd2545aa210321b34ce2bb5c4b8b (diff) | |
| download | coinos-server-12091db2a92bc52e3ae97eab98a4d9f7c1a3dd08.tar.gz coinos-server-12091db2a92bc52e3ae97eab98a4d9f7c1a3dd08.zip | |
funding and withdrawals
Diffstat (limited to 'index.js')
| -rw-r--r-- | index.js | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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(); |
