This is not an issue. You have very nicely explained how to architect a secure restful api with nodejs and angular with ng-route. Can you please share the ui-router implementation for the same. Any github or article reference will be of great help.
You are doing a good job. Keep it up 👍