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.
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 themain.ts
file.