Skip to content
This repository has been archived by the owner on Feb 4, 2025. It is now read-only.

Clean up API route handler registration implementation #307

Open
ethanwu10 opened this issue May 30, 2020 · 0 comments
Open

Clean up API route handler registration implementation #307

ethanwu10 opened this issue May 30, 2020 · 0 comments
Labels
refactoring Improve code quality

Comments

@ethanwu10
Copy link
Member

Since Fastify supports returning JS objects out of request handlers to be converted into JSON, we should clean up the API route handler in server/api/index.js to return the responses; this also explicitly ensures that the sending of the response is also the exit point of the handler.

@ethanwu10 ethanwu10 added the refactoring Improve code quality label May 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
refactoring Improve code quality
Projects
None yet
Development

No branches or pull requests

1 participant