mirror of
https://github.com/Ride-The-Lightning/RTL
synced 2024-11-03 23:15:24 +00:00
Added Index to Multi-Node conf
Added Index to Multi-Node conf
This commit is contained in:
parent
413a6b8561
commit
a2819d820f
@ -1,5 +1,6 @@
|
||||
[
|
||||
{
|
||||
"Index": "1",
|
||||
"LNNode": "LND Testnet # 1",
|
||||
"LNImplementation": "LND",
|
||||
"Authentication": {
|
||||
@ -27,6 +28,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"Index": "2",
|
||||
"LNNode": "LND Mainnet # 1",
|
||||
"LNImplementation": "LND",
|
||||
"Authentication": {
|
||||
|
@ -98,7 +98,7 @@ exports.getMultiNodeConfig = (req, res, next) => {
|
||||
const multiNodeConfig = require('../RTL-Multi-Node-Conf.json');
|
||||
var nodeinfo = [];
|
||||
for(var key in multiNodeConfig)
|
||||
nodeinfo.push({"LNNode":multiNodeConfig[key].LNNode, "LNImpl":multiNodeConfig[key].LNImplementation});
|
||||
nodeinfo.push({"Index":multiNodeConfig[key].Index, "LNNode":multiNodeConfig[key].LNNode, "LNImpl":multiNodeConfig[key].LNImplementation});
|
||||
res.status(200).json({nodes:nodeinfo});
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user