all files / app/components/authInterceptor/ authHttpInterceptor.config.js

100% Statements 4/4
100% Branches 0/0
100% Functions 2/2
100% Lines 4/4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21                          736×        
/**
 * @ngdoc object
 * @name app.components.config:authHttpInterceptorConfig
 * @description
 * Registers an interceptor to allow the authHttpInterceptor service to receive http errors.
 */
 
(function () {
  'use strict';
 
  angular
    .module('app.components')
    .config(config);
 
  /** @ngInject */
  function config($httpProvider) {
    $httpProvider.interceptors.push('authHttpInterceptor');
  }
 
})();