cosmicds / cds-api

API for accessing the CosmicDS database
GNU General Public License v3.0
0 stars 3 forks source link

Modularization #17

Closed Carifio24 closed 2 years ago

Carifio24 commented 2 years ago

This PR "modularizes" the server setup, allowing the code (endpoints, query logic, models, etc.) necessary for each story to live in their own directory and interact with the main server code only when necessary. The endpoints for each story can then live behind a general route for that story (for the Hubble story, it's /hubbles_law). All of the routers for these stories are added into the main Express app in the main.ts file.