changes to grant creation and model clean

This commit is contained in:
Arjun Patel
2019-01-30 11:46:14 -08:00
parent 7b19e69447
commit 556369af11
4 changed files with 30 additions and 29 deletions
+1 -5
View File
@@ -20,11 +20,7 @@ router.get('/grants/', checkAuth(roles.DONOR), controllers.grant.findByDonorId);
* - monthly true or false
* - donor_id
* */
router.post(
'/grants/:donor_id',
checkAuth(roles.DONOR),
controllers.grant.create
);
router.post('/grants/', checkAuth(roles.DONOR), controllers.grant.create);
// DELECT a grant of a donor
router.delete(