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.
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.