aboutsummaryrefslogtreecommitdiff
path: root/routes/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'routes/index.js')
-rw-r--r--routes/index.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/routes/index.js b/routes/index.js
index 72068ff..f30abb5 100644
--- a/routes/index.js
+++ b/routes/index.js
@@ -1,9 +1,10 @@
-var express = require('express')
-var router = express.Router()
+const express = require('express')
+const router = express.Router()
+const users = require('../lib/getUserIndex')
/* GET home page. */
router.get('/', function (req, res, next) {
- res.render('index')
+ res.render('index', { users: users.users })
})
module.exports = router