mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-26 15:57:50 +01:00
fully validate game creation parameters sent through the API
This commit is contained in:
@@ -36,7 +36,6 @@ router.patch('/restart', (req, res, next) => {
|
||||
});
|
||||
|
||||
router.post('/create', gameEndpointLimiter, function (req, res) {
|
||||
logger.debug('Received request to create new game: ' + JSON.stringify(req.body, null, 4));
|
||||
const gameCreationPromise = gameManager.createGame(req.body, false);
|
||||
gameCreationPromise.then((result) => {
|
||||
if (result instanceof Error) {
|
||||
|
||||
Reference in New Issue
Block a user