some routes can be improved #38
Replies: 4 comments 3 replies
-
I couldn't find the route for index function anywhere. I don't think it's even needed. |
Beta Was this translation helpful? Give feedback.
-
I converted the issue into a discussion since some significant refactoring is required. Feel free to share ideas here |
Beta Was this translation helpful? Give feedback.
-
I have removed those specific routes like OrganizationIndex and InstitutionIndex but function for one of them was actually missing though(my mistake). There needs to be a refactoring and fixing of the code especially with events and awards. especially with authorizations that are taking place in controllers and not in the authorization.js which is because a lot fo them had few changes among them due to which i could not refactor the code into one in a short time after adding multiple institutes support.. I am currently working on both the issues. |
Beta Was this translation helpful? Give feedback.
-
Some routes are currently like, |
Beta Was this translation helpful? Give feedback.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions