From 62240e8370e6bc656a17eaef595275a92020a617 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Mon, 24 Oct 2022 23:39:27 +0200 Subject: Added favicon, split view in multiple parts --- routes/play.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 routes/play.js (limited to 'routes') diff --git a/routes/play.js b/routes/play.js new file mode 100644 index 0000000..5e904c4 --- /dev/null +++ b/routes/play.js @@ -0,0 +1,29 @@ +import express from "express"; + +const router = express.Router(); + +router.get("/", (req, res) => { + const CWDATA = { + board: [ + [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ], + [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ], + [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ], + [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ], + [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ], + [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ], + [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ], + [ "", "", "", "", "","", "", "T", "E", "S","T", "", "", "", "" ], + [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ], + [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ], + [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ], + [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ], + [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ], + [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ], + [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ] + ], + letters: [ "A", "B", "C", "D", "E", "F", "JOKER" ] + }; + return res.render("play", {CWDATA: CWDATA, title: "Jouer"}); +}); + +export default router; -- cgit v1.2.3