diff options
| author | Adam Soltys <[email protected]> | 2022-12-06 06:00:07 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-12-06 06:00:07 +0000 |
| commit | e463225fc482624ce380a77c5f0c745930bef7e0 (patch) | |
| tree | 8e0f0871901765ab203b088553e915add924234f /index.js | |
| parent | a675c1992fa58ad04b04a222a1123321268c7af1 (diff) | |
| download | coinos-server-e463225fc482624ce380a77c5f0c745930bef7e0.tar.gz coinos-server-e463225fc482624ce380a77c5f0c745930bef7e0.zip | |
update default config
Diffstat (limited to 'index.js')
| -rw-r--r-- | index.js | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/index.js b/index.js deleted file mode 100644 index 759893dc..00000000 --- a/index.js +++ /dev/null @@ -1,45 +0,0 @@ -import app from "./app"; -import persist from "./lib/persist"; -import config from "./config/index"; -import store from "./lib/store"; -import { l, err } from "./lib/logging"; -import { optionalAuth } from "$lib/passport"; - -import "./db"; -import "./lib/redis"; -import "./lib/sockets"; -import "./lib/webhooks"; -import "./lib/passport"; -import "./lib/upload"; -import "./lib/sync"; -import "./lib/rates"; -import "./lib/notifications"; -import "./lib/mail"; - -import "./routes/assets"; -import "./routes/locations"; -import "./routes/info"; -import "./routes/users"; -import "./routes/invoices"; -import "./routes/payments"; -import "./routes/requests"; -import "./routes/lnurl"; -import "./routes/tickets"; - -if (config.bitcoin) store.networks.push("bitcoin"); -if (config.liquid) store.networks.push("liquid"); -if (config.lna) store.networks.push("lightning"); - -let host = process.env.HOST || "0.0.0.0"; -let port = process.env.PORT || 3119; - -app.post('/echo', optionalAuth, async (req, res) => { - console.log(req.user.username) - console.log(req.body) - res.send(req.body); -}); - -app.listen({ host, port }, (e, address) => { - e && err(e) && process.exit(1); - l(`CoinOS Server listening on ${address}`); -}); |
