From 8ac636186cf5f704264e7473864c54b3edaf4049 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Mon, 21 Nov 2022 21:39:17 +0100 Subject: Added basic games handling --- routes/play.js | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 routes/play.js (limited to 'routes/play.js') diff --git a/routes/play.js b/routes/play.js deleted file mode 100644 index 4db9acd..0000000 --- a/routes/play.js +++ /dev/null @@ -1,35 +0,0 @@ -import express from "express"; - -import makePlayController from "../controllers/play.js"; -import requireAuth from "../middlewares/requireAuth.js"; -import session from "../middlewares/sessions.js"; - -const router = express.Router(); -router.use(session); -router.use(requireAuth); - -router.get("/", (req, res) => { - const cwdata = { - board: [ - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ] - ], - letters: [ "A", "B", "C", "D", "E", "F", "JOKER" ] - }; - return res.render("play", makePlayController(req, cwdata)); -}); - -export default router; -- cgit v1.2.3