mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-25 09:50:31 +00:00
13 lines
No EOL
281 B
JavaScript
13 lines
No EOL
281 B
JavaScript
'use strict';
|
|
|
|
// Service facilitates interaction with the remote API.
|
|
angular.module('app').service('remotes', ['$http', function($http) {
|
|
|
|
this.get = function() {
|
|
return $http.get('/api/remotes');
|
|
};
|
|
|
|
this.getLogins = function() {
|
|
return $http.get('/api/logins');
|
|
};
|
|
}]); |