all files / app/api/ api.constants.js

100% Statements 2/2
100% Branches 0/0
100% Functions 1/1
100% Lines 2/2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25                                             
/**
 * @ngdoc object
 * @name app.api.constant:apiConstants 
 * @description
 *
 * # app.api constants
 *
 * Constants declaring the paths and header names to use when making REST API requests.
 */
(function() {
  'use strict';
 
  angular
    .module('app.api')
    .constant('apiPath','/api/')
    .constant('sessionsPath', 'sessions')
    .constant('userPath', 'user')
    .constant('playersPath', 'players')
    .constant('teamsPath', 'teams')
    .constant('matchesPath', 'matches')
    .constant('scoreboardPath', 'match_scoreboard')
    .constant('authHeaderName', 'Authorization');
 
})();