finished route based on search

This commit is contained in:
Arjun Patel
2019-01-22 21:13:56 -08:00
parent 6e6eba3de4
commit 8c6f439f61
2 changed files with 29 additions and 0 deletions
+4
View File
@@ -12,4 +12,8 @@ router.get('/regions', controllers.region.findAll);
// Retrieve all organizations
router.get('/organizations', controllers.organization.findAll);
// Retrieve based on inputted search
// limitted numer returned; empty input still returns orgs
router.get('/organizations/:search', controllers.organization.searchOrgs);
module.exports = router;