mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-26 15:57:50 +01:00
game creation
This commit is contained in:
@@ -7,6 +7,7 @@ const GameManager = require('../modules/GameManager.js');
|
||||
const gameManager = new GameManager().getInstance();
|
||||
|
||||
router.post('/create', 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