summaryrefslogtreecommitdiff
path: root/routes/play.js
diff options
context:
space:
mode:
authorJulien Dessaux2022-10-24 23:39:27 +0200
committerJulien Dessaux2022-10-24 23:39:27 +0200
commit62240e8370e6bc656a17eaef595275a92020a617 (patch)
treee83e4f83c46671457052f35aebc9463bc4fb61f0 /routes/play.js
parentGet started with ejs templating (diff)
downloadjeux-de-mots-62240e8370e6bc656a17eaef595275a92020a617.tar.gz
jeux-de-mots-62240e8370e6bc656a17eaef595275a92020a617.tar.bz2
jeux-de-mots-62240e8370e6bc656a17eaef595275a92020a617.zip
Added favicon, split view in multiple parts
Diffstat (limited to '')
-rw-r--r--routes/play.js29
1 files changed, 29 insertions, 0 deletions
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;