Skip to content
Snippets Groups Projects
Unverified Commit ed91f01e authored by João Victor Risso's avatar João Victor Risso
Browse files

Refactor source structure and add promise to execute DB queries

Changes in this commit:
- Singularize all routes and components
- Separate different modules into their own source files
- Rename the API module to enrollment and add a more general API module
- Resources that are related to a route, are now under its scope. For
  example, the year range of the enrollment component is now under the
  route /v1/enrollment/year_range
- Implement a thenable function to execute the queries against the
  database to reduce the amount of duplicated code in the application. This
  approach also allows several concurrent queries to run concurrently in the
  same route.
parent 029f378b
No related branches found
No related tags found
1 merge request!7Refactor enrollments route to include query building
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment