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

Use Of Controllers for clean code structure and debugging #3

Open
Code-Gale opened this issue May 9, 2024 · 0 comments
Open

Use Of Controllers for clean code structure and debugging #3

Code-Gale opened this issue May 9, 2024 · 0 comments

Comments

@Code-Gale
Copy link

Hello Dinushchathurya, I am Code-Gale and I came across your node-ecommerce-api and I must say I am very impresssed, quite detailed and neat. The reason I pulled this issue is to suggest to consider further splitting your routes. By this I mean for every route handler function, I suggest you move it into a controller folder and then import it later on. This helps in maintaining a clean code structure and will even help further in debugging in case of bugs. If you don't mind, I can assist with this. Thank you for reading a kudos to you for a job well done.

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

No branches or pull requests

1 participant