From e07ea0075cd02c74c7e68b7e19093a47db5bb16d Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 3 Aug 2020 23:10:01 -0700 Subject: separate info and balances --- routes/info.js | 14 +++++++++++--- 1 file 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 = -- cgit v1.2.3