From b640adcdcdbb03dedfff9909412eb3383cfebc85 Mon Sep 17 00:00:00 2001 From: William Harrington Date: Wed, 17 Apr 2019 22:33:27 -0500 Subject: Export router and use members in members api. --- routes/api/members.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'routes/api') 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; -- cgit v1.2.3-54-g00ecf