Morning
I have a $ http interceptor:
app.factory('Unauthed', ['$q', 'alertService',function($q,alertService) {
return {
response: function (response) {
if (response.status == 401)
alertService.error('Authentication failure.',15000);
return response || $q.when(response);
}
};
}]);
This works fine for all requests that go through $ http, but not through Restangular. Looking through surah, Restangular uses $ http, so I'm not sure what is going on here?
Greetings
source
share