diff --git a/server.js b/server.js index 5dfd5fd..cc496e7 100644 --- a/server.js +++ b/server.js @@ -59,12 +59,21 @@ app.get("/api", (req, res) => { "Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept" ); - res.send({ - fuzIsOpen, - lastSeen, - lastClosed, - processUptime: new Date(process.uptime() * 1000).toISOString().substr(11, 8) - }); + res.header("Content-Type", "application/json"); + res.send( + JSON.stringify( + { + fuzIsOpen, + lastSeen, + lastClosed, + processUptime: new Date(process.uptime() * 1000) + .toISOString() + .substr(11, 8) + }, + null, + 4 + ) + ); }); app.get("/status", (req, res) => {