From dc0d226c046a2bba2e5e2b4e9331820f70d84166 Mon Sep 17 00:00:00 2001 From: William Harrington Date: Wed, 17 Apr 2019 22:41:25 -0500 Subject: Adjust require path for Members. --- routes/api/members.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'routes/api') 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) { -- cgit v1.2.3-54-g00ecf