fixes for adding email for landing page

This commit is contained in:
Arjun Patel
2019-04-21 01:36:51 -07:00
parent 232d3ad098
commit 663759f56b
2 changed files with 2 additions and 5 deletions
+1 -4
View File
@@ -19,10 +19,7 @@ exports.addEmail = (req, res, next) => {
}) })
.then(donor => { .then(donor => {
// Send created user to client // Send created user to client
return res.status(201).json({ return res.status(201).json(donor);
message: 'User created',
donor
});
}) })
.catch(error => next(error)); .catch(error => next(error));
} }
+1 -1
View File
@@ -33,7 +33,7 @@ router.get(
router.get('/organizations/:search', organization.searchOrganizations); router.get('/organizations/:search', organization.searchOrganizations);
// Add user email to database from the landing page // Add user email to database from the landing page
router.post('/users/landing', user.addEmail); router.post('/landing/email', user.addEmail);
// Test sending an email // Test sending an email
router.post('/email/test', sendgrid.testEmail); router.post('/email/test', sendgrid.testEmail);