Change opportunity route names to follow route naming conventions. In opportunity.js, we have routes that should be grouped together, rather than having separate names. For example, all opportunity related routes should begin with /api/opportunity, followed by its specific sub-collection. Any requests in the frontend should also be updated to reflect this new convention. Make sure you test these routes!
Change
opportunity
route names to follow route naming conventions. Inopportunity.js
, we have routes that should be grouped together, rather than having separate names. For example, allopportunity
related routes should begin with/api/opportunity
, followed by its specific sub-collection. Any requests in the frontend should also be updated to reflect this new convention. Make sure you test these routes!