diff options
| -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 = |
