From 17659ce1983f39720de51b5fb898af515f701206 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Tue, 12 Mar 2024 07:37:29 +0200 Subject: Caching enabled results and a fix --- api/routes/getPeers/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/routes/getPeers') 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"}) } -- cgit v1.2.3