replace restart with return to lobby, add mockup player options button

This commit is contained in:
AlecM33
2023-08-02 18:44:33 -04:00
parent 61275dd3e5
commit d00f3d630a
9 changed files with 89 additions and 28 deletions

View File

@@ -102,7 +102,9 @@ router.patch('/:code/restart', async function (req, res) {
} else {
const game = await gameManager.getActiveGame(req.body.accessCode);
if (game) {
gameManager.restartGame(game, gameManager.namespace).then((data) => {
gameManager.restartGame(game, gameManager.namespace, req.query.status).then((data) => {
console.log(req.query.status);
console.log(req.query.toLobby);
res.status(200).send();
}).catch((code) => {
res.status(code).send();