diff options
author | William Harrington <kb0iic@berzerkula.org> | 2019-04-18 00:58:34 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2019-04-18 00:58:34 -0500 |
commit | dd2642cf9b012e4006dd14eafbaf85a4f62c110d (patch) | |
tree | 007ffc3429ddb471603761ee2a91bc8100b47d39 /routes/api | |
parent | 85da8c51668610aa3ca45541f07aff71c93f7cd7 (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')
-rw-r--r-- | routes/api/members.js | 3 |
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 |