refactor widget.js, return http 200 when server is offline

This commit is contained in:
Sairenity 2023-02-28 16:22:43 +00:00
parent ad66637ff1
commit b36ef0234e
2 changed files with 2 additions and 16 deletions

View file

@ -18,7 +18,7 @@ export default async function minecraftProxyHandler(req, res) {
});
} catch (e) {
logger.warn(e)
res.status(500).send({
res.status(200).send({
version: undefined,
online: false,
players: undefined