Js code division problem

  node.js, question

I now mainly write background pages, angularjs for the front end, node js and express framework for the server, but there are a few small problems. I always feel that there are too many levels of these things. in angular js, conToller-> service-> router —>services layer in node js, but I always feel that sometimes all levels cannot be used for different functions, and the code corresponding to different levels feels different, and the code feels very strange. . . Ask for guidance! ~! ~! ~

spa。 Then router only does api routing that provides ajax. The front end follows the thought of angularjs.