add query
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user