aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--index.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/index.js b/index.js
index a2f0b94..d4ced9e 100644
--- a/index.js
+++ b/index.js
@@ -2,6 +2,7 @@ const express = require('express');
const path = require('path');
const exphbs = require('express-handlebars');
const logger = require('./middleware/logger.js');
+const members = require('./Members');
const app = express();
@@ -19,7 +20,8 @@ app.use(express.urlencoded({extended: false}));
// Homepage Route
app.get('/', (req, res) =>
res.render('index', {
- title: 'Member App'
+ title: 'Member App',
+ members
})
);