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

Assigning Functions to Endpoints #3

Open
sjlagasse opened this issue Sep 18, 2018 · 0 comments
Open

Assigning Functions to Endpoints #3

sjlagasse opened this issue Sep 18, 2018 · 0 comments

Comments

@sjlagasse
Copy link

Good job assigning a function to each endpoint but writing the actual function outside of the route area. This helps to keep your routes clear and concise. Also, since they are function declarations, you are write the functions below where they are called due to hoisting.

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