mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-17 07:14:40 -05:00
im sorry lol
This commit is contained in:
parent
8203cc8f81
commit
ccd7f8e14b
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ app.get("/game-hub", function (req, res) {
|
||||||
var gameslist = ["pong", "tic-tac-toe", "sudoku", "snake"];
|
var gameslist = ["pong", "tic-tac-toe", "sudoku", "snake"];
|
||||||
var requestedGame = req.query.game;
|
var requestedGame = req.query.game;
|
||||||
|
|
||||||
if (!requestedGame || !gameslist.includes(requestedGame)) {
|
if (!gameslist.includes(requestedGame)) {
|
||||||
return renderTemplate(res, req, "404.ejs");
|
return renderTemplate(res, req, "404.ejs");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue