mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
11 lines
351 B
JavaScript
11 lines
351 B
JavaScript
|
angular.module('portainer.rest')
|
||
|
.factory('Events', ['$resource', 'Settings', function EventFactory($resource, Settings) {
|
||
|
'use strict';
|
||
|
return $resource(Settings.url + '/events', {}, {
|
||
|
query: {
|
||
|
method: 'GET', params: {since: '@since', until: '@until'},
|
||
|
isArray: true, transformResponse: jsonObjectsToArrayHandler
|
||
|
}
|
||
|
});
|
||
|
}]);
|