diff options
| author | Adam Soltys <[email protected]> | 2020-08-03 23:10:01 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-08-03 23:10:01 -0700 |
| commit | e07ea0075cd02c74c7e68b7e19093a47db5bb16d (patch) | |
| tree | 2c81f0cc89a75b1af1fec95cead63b6087f85a76 | |
| parent | 4ad19feab07636823333a36369cc49880aa43532 (diff) | |
| download | coinos-server-e07ea0075cd02c74c7e68b7e19093a47db5bb16d.tar.gz coinos-server-e07ea0075cd02c74c7e68b7e19093a47db5bb16d.zip | |
separate info and balances
| -rw-r--r-- | routes/info.js | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/routes/info.js b/routes/info.js index 957c6926..4821e82d 100644 --- a/routes/info.js +++ b/routes/info.js @@ -3,6 +3,17 @@ const { Op } = sequelize; app.get("/info", ah(async (req, res, next) => { const { clientVersion } = config; + + const info = { + rates: app.get("rates"), + nodes: networks, + clientVersion, + }; + + res.send(info); +})); + +app.get("/balances", ah(async (req, res, next) => { const accounts = await db.Account.findAll({ attributes: [ "asset", @@ -50,9 +61,6 @@ app.get("/info", ah(async (req, res, next) => { liquid, lnchannel, lnwallet, - rates: app.get("rates"), - nodes: networks, - clientVersion, }; info.total = |
