aboutsummaryrefslogtreecommitdiff
path: root/routes
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2016-11-10 15:31:14 +0100
committerGitHub <noreply@github.com>2016-11-10 15:31:14 +0100
commitce8649602dadc350ba913991ac7975a1e01d58ed (patch)
tree8d821d226c4a8abf60d288a5c5c0d7a2834f5dc4 /routes
parente9c57f705f5638c65bf3c1e946de766f9b794c6d (diff)
parent026ec47c693d74307ba780b8e998f0196dd9f195 (diff)
Merge pull request #2 from nloomans/beta
added new style unit test
Diffstat (limited to 'routes')
-rw-r--r--routes/index.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/routes/index.js b/routes/index.js
index f30abb5..07192b7 100644
--- a/routes/index.js
+++ b/routes/index.js
@@ -4,7 +4,11 @@ const users = require('../lib/getUserIndex')
/* GET home page. */
router.get('/', function (req, res, next) {
- res.render('index', { users: users.users })
+ if (req.query.v === 'n') {
+ res.render('index', { version: 'new', users: users.users })
+ } else {
+ res.render('index', { version: 'old', users: users.users })
+ }
})
module.exports = router