woodpecker/cmd/drone-server/static/scripts/services/agents.js

23 lines
355 B
JavaScript
Raw Normal View History

2015-04-30 21:41:52 +00:00
'use strict';
(function () {
/**
* The Agent provides access to build agent
* data and management using REST API calls.
*/
function AgentService($http) {
/**
* Gets an agent token.
*/
this.getToken = function() {
return $http.get('/api/agents/token');
};
}
angular
.module('drone')
.service('agents', AgentService);
})();