diff options
author | Julien Dessaux | 2023-01-05 02:09:07 +0100 |
---|---|---|
committer | Julien Dessaux | 2023-01-05 02:09:07 +0100 |
commit | d7ed1196bdd44d7734d41d91a5e72a71785e0a08 (patch) | |
tree | aafae6571d5154dc5e9a061c8f54ca8e9b1287ad /controllers/games/gameId.js | |
parent | Added more tests (diff) | |
download | jeux-de-mots-d7ed1196bdd44d7734d41d91a5e72a71785e0a08.tar.gz jeux-de-mots-d7ed1196bdd44d7734d41d91a5e72a71785e0a08.tar.bz2 jeux-de-mots-d7ed1196bdd44d7734d41d91a5e72a71785e0a08.zip |
switched to single quotes string in eslint
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'); } |