diff options
Diffstat (limited to '')
-rw-r--r-- | controllers/games/gameId.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/controllers/games/gameId.js b/controllers/games/gameId.js index d3363fd..9487743 100644 --- a/controllers/games/gameId.js +++ b/controllers/games/gameId.js @@ -1,8 +1,8 @@ -import { getGame } from "../../database/games.js"; +import { getGame } from '../../database/games.js'; function makePageData(user, game) { return { - title: "Jouer", + title: 'Jouer', user: user, data: game, }; @@ -18,7 +18,7 @@ export function gameId_get(req, res) { game.letters = game.player2.letters; delete game.player1.letters; } - return res.render("game", makePageData(req.session.user, game)); + return res.render('game', makePageData(req.session.user, game)); } - return res.redirect("/games"); + return res.redirect('/games'); } |