83577a7d5d
removed amber files. replacing with angular removed queue package in favor or worker package removed channel package in favor of pubsub package
14 lines
325 B
JavaScript
14 lines
325 B
JavaScript
'use strict';
|
|
|
|
angular.module('app').service('repoService', function($q, $http) {
|
|
return{
|
|
getRepo : function(host, owner, name) {
|
|
var defer = $q.defer();
|
|
var route = '/v1/repos/'+host+'/'+owner+'/'+name;
|
|
$http.get(route).success(function(data){
|
|
defer.resolve(data);
|
|
});
|
|
return defer.promise;
|
|
}
|
|
}
|
|
});
|