summaryrefslogtreecommitdiff
path: root/controllers/play.js
diff options
context:
space:
mode:
authorJulien Dessaux2022-10-31 22:40:42 +0100
committerJulien Dessaux2022-10-31 22:40:42 +0100
commitb91bb0a133aa3d0400beb359fed4e641c888ab26 (patch)
tree0b703fab300ab39ffd39708b193bcfa09e89f6f5 /controllers/play.js
parentFixed middleware action without return (diff)
downloadjeux-de-mots-b91bb0a133aa3d0400beb359fed4e641c888ab26.tar.gz
jeux-de-mots-b91bb0a133aa3d0400beb359fed4e641c888ab26.tar.bz2
jeux-de-mots-b91bb0a133aa3d0400beb359fed4e641c888ab26.zip
Added logout route, and a way to display the logout menu item on relevant pages
Diffstat (limited to 'controllers/play.js')
-rw-r--r--controllers/play.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/controllers/play.js b/controllers/play.js
new file mode 100644
index 0000000..c00d15d
--- /dev/null
+++ b/controllers/play.js
@@ -0,0 +1,9 @@
+function makeController(req, cwdata) {
+ return {
+ title: "Jouer",
+ user: req.session.user,
+ CWDATA: cwdata,
+ };
+}
+
+export default makeController;