How to use angularJS interceptor to only intercept specific http requests?
问题 I know how to intercept ALL requests, but I only want to intercept requests from my resources. Does anyone know how to do this? services.config(['$httpProvider',function($httpProvider) { $httpProvider.interceptors.push('myHttpInterceptor'); }]); services.factory("userPurchased", function ($resource) { return $resource("/api/user/purchases/:action/:item", {}, { 'list': {method: 'GET', params: {action: 'list'}, isArray: false}, 'save': {method: 'PUT', params: {item: '@item'}}, 'remove': {method