diff options
Diffstat (limited to 'routes/api/members.js')
-rw-r--r-- | routes/api/members.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/routes/api/members.js b/routes/api/members.js index d65a51d..16989fb 100644 --- a/routes/api/members.js +++ b/routes/api/members.js @@ -1,12 +1,12 @@ const express = require('express'); const router = express.Router(); -const members = require('./Members'); +const members = require('../../Members'); // Gets all members -router.get('/api/members', (req, res) => res.json(members)); +router.get('/', (req, res) => res.json(members)); // Get single member -router.get('/api/members/:id', (req, res) => { +router.get('/:id', (req, res) => { const found = members.some(member => member.id === parseInt(req.params.id)); if(found) { |