mirror of https://github.com/portainer/portainer
9 lines
325 B
JavaScript
9 lines
325 B
JavaScript
|
angular.module('portainer.rest')
|
||
|
.factory('Task', ['$resource', 'Settings', function TaskFactory($resource, Settings) {
|
||
|
'use strict';
|
||
|
return $resource(Settings.url + '/tasks/:id', {}, {
|
||
|
get: { method: 'GET', params: {id: '@id'} },
|
||
|
query: { method: 'GET', isArray: true, params: {filters: '@filters'} }
|
||
|
});
|
||
|
}]);
|