1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-07-12 22:21:40 +02:00
Files
woodpecker/server/app/scripts/services/remote.js

13 lines
281 B
JavaScript
Raw Normal View History

2014-07-12 19:01:58 -07:00
'use strict';
// Service facilitates interaction with the remote API.
angular.module('app').service('remotes', ['$http', function($http) {
this.get = function() {
2014-09-30 00:43:50 -07:00
return $http.get('/api/remotes');
2014-07-12 19:01:58 -07:00
};
this.getLogins = function() {
2014-09-30 00:43:50 -07:00
return $http.get('/api/logins');
2014-07-12 19:01:58 -07:00
};
}]);