mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-26 15:57:50 +01:00
replace restart with return to lobby, add mockup player options button
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user