diff options
Diffstat (limited to 'api/routes/getPeers/index.js')
-rw-r--r-- | api/routes/getPeers/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/routes/getPeers/index.js b/api/routes/getPeers/index.js index 302f23a..699cebb 100644 --- a/api/routes/getPeers/index.js +++ b/api/routes/getPeers/index.js @@ -6,7 +6,7 @@ module.exports = (req, res) => { // const command = spawn("ak-config", ["get-published"]); const path = config.peersFile; if(fs.existsSync(path)){ - res.send(fs.readFileSync(path)); + res.send(JSON.parse(fs.readFileSync(path))); } else { res.send({"error":"404"}) } |