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

Separate Business Logic from Routes #88

Open
josh-byster opened this issue Nov 25, 2019 · 0 comments
Open

Separate Business Logic from Routes #88

josh-byster opened this issue Nov 25, 2019 · 0 comments
Labels
backend enhancement New feature or request

Comments

@josh-byster
Copy link
Contributor

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

As our application is growing now more complex with our business logic, our routes are becoming more packed with handling different scenarios and doing a lot in the route handler. It becomes difficult at that point to take pieces and reuse them in other route handlers.

Describe the solution you'd like
A clear and concise description of what you want to happen.

Extracting out all this business logic in our backend to a "service" layer as described here. This way, we have a separation of concerns and encapsulation of logic into different pieces which we can test and reuse throughout our code.

Additional context
Add details, any other context or screenshots about the feature request here.

@alan-fang alan-fang added the enhancement New feature or request label Feb 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants