hermann with angularjs and middleware