You may want to take a look at LoopBack, our API framework built on top of express:
It will allow you to mix both options:
- On the server, you can declaratively map DocManager REST interface onto an object-based REST API to be consumed by your front-end.
- Where appropriate, you can add your custom function to extend the models provided by DocManager.
- On the client, you can generate ngResource definitions for your server api by running a single command or as part of your Grunt/Gulp build.
- Where appropriate, you can implement extra logic that does not belong to the server.
Miroslav