Closed priyansh32 closed 3 years ago
Currently there are two functions in src/controllers/organizations named index and instituteIndex
src/controllers/organizations
index
instituteIndex
index fetched all organizations (I am not sure about the route of this function)
InstituteIndex
{{baseURL}}/institutes/:instituteId/organizations
We can use a single route to get required organizations using query params.
I couldn't find the route for index function anywhere. I don't think it's even needed.
Currently there are two functions in
src/controllers/organizations
namedindex
andinstituteIndex
index
fetched all organizations (I am not sure about the route of this function)InstituteIndex
{{baseURL}}/institutes/:instituteId/organizations
We can use a single route to get required organizations using query params.