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

Separation of external resource layers for API handlers #3178

Open
jopemachine opened this issue Nov 29, 2024 · 0 comments
Open

Separation of external resource layers for API handlers #3178

jopemachine opened this issue Nov 29, 2024 · 0 comments
Labels
type:refactor Refactor codes or add tests.

Comments

@jopemachine
Copy link
Member

Currently, REST API and GraphQL handlers have unrestricted access to the database and external resources, making the handlers overly complex and difficult to manage.

To improve code maintainability, we could consider separating the layers that handlers can access, ensuring that direct database requests are no longer made from the handler level.

@jopemachine jopemachine added the type:refactor Refactor codes or add tests. label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:refactor Refactor codes or add tests.
Projects
None yet
Development

No branches or pull requests

1 participant