To remove some of the messiness from your handler file it would be better to have a router.js. This would help me to understand the code as well where the router.js is only directing to handlers based on url and the handler.js is handling the data/calling other functions to do so. Please modularise your code.
To remove some of the messiness from your handler file it would be better to have a router.js. This would help me to understand the code as well where the router.js is only directing to handlers based on url and the handler.js is handling the data/calling other functions to do so. Please modularise your code.