aboutsummaryrefslogtreecommitdiffstats
path: root/routes/api/members.js
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2019-04-18 00:58:34 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2019-04-18 00:58:34 -0500
commitdd2642cf9b012e4006dd14eafbaf85a4f62c110d (patch)
tree007ffc3429ddb471603761ee2a91bc8100b47d39 /routes/api/members.js
parent85da8c51668610aa3ca45541f07aff71c93f7cd7 (diff)
Use a form for adding members and redirect after form submission so that the list of members is displayed and not json output.
Diffstat (limited to 'routes/api/members.js')
-rw-r--r--routes/api/members.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/routes/api/members.js b/routes/api/members.js
index f1498ae..36b66aa 100644
--- a/routes/api/members.js
+++ b/routes/api/members.js
@@ -33,7 +33,8 @@ router.post('/', (req, res) => {
}
members.push(newMember);
- res.json(members);
+ //res.json(members);
+ res.redirect('/nodejs');
});
// Updat Member