mirror of
https://github.com/Ride-The-Lightning/RTL
synced 2024-11-15 18:13:00 +00:00
ab54c44b73
Incomplete lazy load 8
15 lines
330 B
JavaScript
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'));
|
|
}
|
|
});
|
|
};
|