{"size": 683, "ext": "js", "max_stars_repo_path": "app/js/services.js", "max_stars_repo_name": "GuillaumeHenry/Gigs", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/js/services.js", "max_issues_repo_name": "GuillaumeHenry/Gigs", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/js/services.js", "max_forks_repo_name": "GuillaumeHenry/Gigs", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 31.0454545455, "max_line_length": 136, "alphanum_fraction": 0.6368960469}
'use strict';

/* Services */

var gigsServices = angular.module('gigsServices', ['ngResource'])
.factory('Artist', ['$resource',
  function($resource){
    return $resource('http://promoteapi.herokuapp.com/artists/:artistId', {artistId:"@id"}, {'query' : {method: 'GET', isArray:false}});
  }
])
.factory('Label', ['$resource',
  function($resource){
    return $resource('http://promoteapi.herokuapp.com/labels/:labelId', {labelId:"@id"}, {'query' : {method: 'GET', isArray:false}});
  }
])
.factory('Gig', ['$resource',
  function($resource){
    return $resource('http://promoteapi.herokuapp.com/gigs/:gigId', {gigId:"@id"}, {'query' : {method: 'GET', isArray:false}});
  }
]);

