proper getting charity by id

This commit is contained in:
Arjun Patel
2019-04-04 01:45:53 -07:00
parent eed7d86c89
commit 27626a0fbf
2 changed files with 36 additions and 2 deletions
+3
View File
@@ -18,6 +18,9 @@ router.get('/regions', region.getAllRegions);
// Retrieve all organizations
router.get('/organizations', organization.getAllOrganizations);
// Retrieve organization by id
router.get('/organization/:charityId', organization.getOrganizationById);
// Retrieve charities based on inputted search
// TODO: fix sql injection attack
router.get('/organizations/:search', organization.searchOrganizations);