diff options
Diffstat (limited to 'routes')
-rw-r--r-- | routes/index.js | 6 |
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 |