woodpecker/server/app/scripts/services/remote.js

13 lines
279 B
JavaScript
Raw Normal View History

2014-07-13 02:01:58 +00:00
'use strict';
// Service facilitates interaction with the remote API.
angular.module('app').service('remotes', ['$http', function($http) {
this.get = function() {
return $http.get('/v1/remotes');
};
this.getLogins = function() {
return $http.get('/v1/logins');
};
}]);