aboutsummaryrefslogtreecommitdiffstats
path: root/routes/api
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2019-04-17 22:41:25 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2019-04-17 22:41:25 -0500
commitdc0d226c046a2bba2e5e2b4e9331820f70d84166 (patch)
tree7eaa57e4267d2942d9b62a90391404100a6cd6df /routes/api
parent5c98e022d67964d922bd514aadfacf0daa9288b9 (diff)
Adjust require path for Members.
Diffstat (limited to 'routes/api')
-rw-r--r--routes/api/members.js6
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) {