Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

send json response for status check

Al Saleh806db58be62f
diff --git a/server.js b/server.js
index d7f5567f..8c70a248 100644
--- a/server.js
+++ b/server.js
@@ -147,7 +147,7 @@ const app = express()
.use(ENDPOINTS.statusCheck, (req, res) => {
try {
statusCheck(req.url, async (results) => {
- await res.end(results);
+ await res.json(results).end();
});
} catch (e) {
printWarning(`Error running status check for ${req.url}\n`, e);