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

Controllers - index.js needs refactoring #35

Open
arrested-developer opened this issue Aug 24, 2018 · 0 comments
Open

Controllers - index.js needs refactoring #35

arrested-developer opened this issue Aug 24, 2018 · 0 comments

Comments

@arrested-developer
Copy link

Therre's a lot going on that could be separated out into separate controller files.

Your controller files could have a post and a get method in them - for example you don't need a separate 'add-user' route - this could be the post route for 'sign-up'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants