aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--index.js1
-rw-r--r--routes/api/members.js4
2 files changed, 2 insertions, 3 deletions
diff --git a/index.js b/index.js
index 2b78b86..a8fea3e 100644
--- a/index.js
+++ b/index.js
@@ -1,7 +1,6 @@
const express = require('express');
const path = require('path');
const logger = require('./middleware/logger.js');
-const members = require('./Members.js');
const app = express();
diff --git a/routes/api/members.js b/routes/api/members.js
index d1c3bf9..9787839 100644
--- a/routes/api/members.js
+++ b/routes/api/members.js
@@ -1,6 +1,6 @@
const express = require('express');
const router = express.Router();
-
+const members = require('./Members.js');
// Gets all members
router.get('/api/members', (req, res) => res.json(members));
@@ -18,4 +18,4 @@ router.get('/api/members/:id', (req, res) => {
}
});
-
+modules.exports = router;