display start game button all the time, change kill/reveal buttons

This commit is contained in:
AlecM33
2022-07-08 19:52:20 -04:00
parent 4f75efd447
commit 7a66d8d51f
10 changed files with 151 additions and 78 deletions

View File

@@ -50,7 +50,7 @@ router.post('/create', function (req, res) {
if (result instanceof Error) {
res.status(500).send();
} else {
res.send(result); // game was created successfully, and access code was returned
res.status(201).send(result); // game was created successfully, and access code was returned
}
}).catch((e) => {
if (e === globals.ERROR_MESSAGE.BAD_CREATE_REQUEST) {