Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🎨 Refactor: move route func's to separate handlers #2670

Draft
wants to merge 58 commits into
base: master
Choose a base branch
from

Conversation

ff137
Copy link
Contributor

@ff137 ff137 commented Sep 15, 2023

Move all the route handling functions to separate modules in routes/handlers/. Makes it easier to maintain routes/spec.js, and to write tests for each route.

Which reminds me. Todo: write tests for each route!

@howardchung
Copy link
Member

This will need a rebase. But my intent was for queries.ts to hold most of the business logic as well as provide testable interfaces. We don't necessarily need to split each set of functions into a separate file, I think

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants