mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-18 15:33:12 +09:00
Added debug tools for adding/removing items
This commit is contained in:
1 parent
f886fe3e95
commit
04aba1eef1
2 files changed
+35
-2
No files matched your search
@@ -215,7 +215,12 @@ var recievedItemStatistics = new averagedTimeSeries({
|
||||
app.post("/api/place", function(req, res) {
|
||||
res.header("Access-Control-Allow-Origin", "*");
|
||||
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
|
||||
let x = req.body;
|
||||
let x;
|
||||
try {
|
||||
x = JSON.parse(req.body);
|
||||
} catch (e) {
|
||||
x = req.body;
|
||||
}
|
||||
if(!x.instanceName) {
|
||||
x.instanceName = "unknown";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user