Skip to content
Snippets Groups Projects
  • João Victor Risso's avatar
    ed91f01e
    Refactor source structure and add promise to execute DB queries · ed91f01e
    João Victor Risso authored
    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.
    Refactor source structure and add promise to execute DB queries
    João Victor Risso authored
    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.