diff options
author | Julien Dessaux | 2022-10-24 23:39:27 +0200 |
---|---|---|
committer | Julien Dessaux | 2022-10-24 23:39:27 +0200 |
commit | 62240e8370e6bc656a17eaef595275a92020a617 (patch) | |
tree | e83e4f83c46671457052f35aebc9463bc4fb61f0 /routes | |
parent | Get started with ejs templating (diff) | |
download | jeux-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 'routes')
-rw-r--r-- | routes/play.js | 29 |
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; |