diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-03-12 07:37:29 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-03-12 07:37:29 +0200 |
commit | 17659ce1983f39720de51b5fb898af515f701206 (patch) | |
tree | da3057beba1b7ac136f7b6d82323b70a88737128 /api/routes/getPeers/index.js | |
parent | 88e9bb162fecb6c44ac07b01e99fca1f69e2f5b6 (diff) | |
download | arching-kaos-tools-17659ce1983f39720de51b5fb898af515f701206.tar.gz arching-kaos-tools-17659ce1983f39720de51b5fb898af515f701206.tar.bz2 arching-kaos-tools-17659ce1983f39720de51b5fb898af515f701206.zip |
Caching enabled results and a fix
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"}) } |