your handlers.js file is 248 lines !!
you modules should be at most 100 lines , to let your code more readable , and easy to find handlers and modify them.
It is not necessary to have all the handlers in one file , you can make all the GET requests in a file , and all the 'POST' requests in another file , and that up to you and your team how to distribute the files
your
handlers.js
file is 248 lines !! you modules should be at most 100 lines , to let your code more readable , and easy to find handlers and modify them.It is not necessary to have all the handlers in one file , you can make all the
GET
requests in a file , and all the 'POST' requests in another file , and that up to you and your team how to distribute the files