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

Handler file #24

Open
hdrdavies opened this issue Oct 16, 2015 · 0 comments
Open

Handler file #24

hdrdavies opened this issue Oct 16, 2015 · 0 comments

Comments

@hdrdavies
Copy link

You require the other handler file called 'handlerfunctions.js' here:

https://github.com/kat4/KatOver4low/blob/master/controllers/handler.js#L6

But then you don't use it in the handler.js file?


A good example of having a general handler, then routing users to different function is here (Nelson):

https://github.com/dwyl/learn-json-web-tokens/blob/master/example/server.js

Apparently this is what we should be doing (super clean right?). We obv were as clean as this in our project.

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