mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-29 08:34:59 +02:00
send json response for status check
This commit is contained in:
parent
951aa74510
commit
806db58be6
@ -147,7 +147,7 @@ const app = express()
|
|||||||
.use(ENDPOINTS.statusCheck, (req, res) => {
|
.use(ENDPOINTS.statusCheck, (req, res) => {
|
||||||
try {
|
try {
|
||||||
statusCheck(req.url, async (results) => {
|
statusCheck(req.url, async (results) => {
|
||||||
await res.end(results);
|
await res.json(results).end();
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
printWarning(`Error running status check for ${req.url}\n`, e);
|
printWarning(`Error running status check for ${req.url}\n`, e);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user