core icon indicating copy to clipboard operation
core copied to clipboard

:art: Refactor: move route func's to separate handlers

Open ff137 opened this issue 2 years ago • 1 comments

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!

ff137 avatar Sep 15 '23 19:09 ff137

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

howardchung avatar Jan 07 '24 22:01 howardchung