Add some debug info to /
This commit is contained in:
parent
fc3329597d
commit
42a028f52c
4
index.js
4
index.js
|
@ -422,6 +422,10 @@ app.get('/', (req, res) => {
|
||||||
"author": "Chris Chrome",
|
"author": "Chris Chrome",
|
||||||
"repo": "https://github.com/TerraDevelopers/TerraStatusAPI",
|
"repo": "https://github.com/TerraDevelopers/TerraStatusAPI",
|
||||||
"commit": getGitCommitDetails()
|
"commit": getGitCommitDetails()
|
||||||
|
},
|
||||||
|
"debug": {
|
||||||
|
"yourIP": req.ip,
|
||||||
|
"yourUserAgent": req.headers["user-agent"]
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue