'use strict';

/**
 * @ngdoc service
 * @name ciscogithubioApp.ProjectSvc
 * @description
 * # ProjectSvc
 * Service in the ciscogithubioApp.
 */
angular.module('ciscogithubioApp')
  .service('ProjectSvc', function ($http) {
    // AngularJS will instantiate a singleton by calling "new" on this function
    var HOST = 'https://gh.ciscodevnetcloud.com';
    return {
      query : function() {
        return $http.get( HOST + '/ghpages/repos.json');
      },
      getStats : function() {
        return $http.get( HOST + '/ghpages/stats.json');
      },
      getFeatured : function() {
        return $http.get( HOST + '/ghpages/featured.json');
      }
    };
  });

'use strict';

/**
 * @ngdoc service
 * @name ciscogithubioApp.ProjectSvc
 * @description
 * # ProjectSvc
 * Service in the ciscogithubioApp.
 */
angular.module('ciscogithubioApp')
  .service('ProjectSvc', function ($http) {
    // AngularJS will instantiate a singleton by calling "new" on this function
    return {
      query : function() {
        return $http.get( 'data/repos.json');
      },
      getStats : function() {
        return $http.get( 'data/stats.json');
      },
      getFeatured : function() {
        return $http.get( 'data/featured.json');
      }
    };
  });

Update to pull from local data
Update to pull from local data
