mirror of
https://github.com/Ride-The-Lightning/RTL
synced 2024-11-11 13:10:41 +00:00
97a42eb9dd
UI Fixes
18 lines
474 B
JavaScript
18 lines
474 B
JavaScript
var fs = require('fs');
|
|
|
|
exports.getLNDSettings = (req, res, next) => {
|
|
console.log('Getting LND Conf Settings!');
|
|
fs.readFile(req.headers.filepath, function(err, data) {
|
|
if (err) {
|
|
console.log('Reading Config File Failed!');
|
|
res.status(500).json({
|
|
message: "Reading Config File Failed!",
|
|
error: err
|
|
});
|
|
} else {
|
|
console.log('LND Conf read successfully');
|
|
res.status(200).json(data.toString('utf8'));
|
|
}
|
|
});
|
|
};
|