From 8438802ce05192f0c2b71795583622893c5f0d94 Mon Sep 17 00:00:00 2001 From: William Harrington Date: Thu, 18 Apr 2019 01:05:11 -0500 Subject: Add a visit api button for redirect to view json rather than after form submission. --- routes/api/members.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'routes/api/members.js') diff --git a/routes/api/members.js b/routes/api/members.js index 36b66aa..df5195f 100644 --- a/routes/api/members.js +++ b/routes/api/members.js @@ -33,8 +33,8 @@ router.post('/', (req, res) => { } members.push(newMember); - //res.json(members); - res.redirect('/nodejs'); + res.json(members); + //res.redirect('/nodejs'); }); // Updat Member -- cgit v1.2.3-54-g00ecf