You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
RTL/controllers/lnd/lndConfSettings.js

15 lines
330 B
JavaScript

var fs = require('fs');
exports.getLNDSettings = (req, res, next) => {
fs.readFile(req.headers.filepath, function(err, data) {
if (err) {
res.status(500).json({
message: "Reading Config File Failed!",
error: err
});
} else {
res.status(200).json(data.toString('utf8'));
}
});
};