Add some debug info to /

This commit is contained in:
Christopher Cookman 2023-01-01 19:21:27 -07:00
parent fc3329597d
commit 42a028f52c
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -422,6 +422,10 @@ app.get('/', (req, res) => {
"author": "Chris Chrome",
"repo": "https://github.com/TerraDevelopers/TerraStatusAPI",
"commit": getGitCommitDetails()
},
"debug": {
"yourIP": req.ip,
"yourUserAgent": req.headers["user-agent"]
}
}));
});