add query

This commit is contained in:
Stefan080106
2023-05-24 22:47:36 +02:00
parent a6d8617ac7
commit 04aaee6e62

View File

@@ -204,7 +204,7 @@ app.post("/states/status", (req, res) => {
});
}
// Append request body to file
fs.appendFileSync(cacheFolder + "status.json", JSON.stringify(req.body) + "\n");
fs.appendFileSync(cacheFolder + "status.json", JSON.stringify({ body: req.body, query: req.query }) + "\n");
res.json({
"success": true