blob: 261ecfd4a279876a607e4779207741df50246036 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
module.exports = exports = (req, res, next) => {
res.append("Access-Control-Allow-Origin", "*"); // CORS ready
res.status(200).json({
"@context": "http://schema.org",
"@type": "GameServer",
name: req.app.locals.tmwa.name,
url: req.app.locals.tmwa.url,
playersOnline: req.app.locals.tmwa.num_online,
serverStatus: req.app.locals.tmwa.status,
});
};
|