diff options
Diffstat (limited to 'controllers')
-rw-r--r-- | controllers/login.js | 7 | ||||
-rw-r--r-- | controllers/play.js | 9 |
2 files changed, 13 insertions, 3 deletions
diff --git a/controllers/login.js b/controllers/login.js index bff312e..b274a9e 100644 --- a/controllers/login.js +++ b/controllers/login.js @@ -1,6 +1,7 @@ -function makeLoginController() { +function makeController(req) { return { - title: "Connection", + title: "Connexion", + user: req.session.user, data: { username: "", password: "", @@ -9,4 +10,4 @@ function makeLoginController() { }; } -export default makeLoginController; +export default makeController; 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; |