facg3 / MWM-Shop_Project

2 stars 1 forks source link

handlers.js file is too long #33

Open SamerElaila opened 6 years ago

SamerElaila commented 6 years ago

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