model set up and associations

This commit is contained in:
Arjun Patel
2019-01-15 23:14:05 -08:00
parent a4e4394329
commit 86dd4c8cdb
8 changed files with 59 additions and 6 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ router.post('/', donors.create);
// Retrieve all Donors
router.get('/', checkAuth, donors.findAll);
// Retrieve grants with cause and region and charity details by donor_id
// Retrieve grants with causes and regions and charities details by donor_id
router.get('/grants/:donor_id', checkAuth, grants.findByDonorId);
/** Create grants with following body: