Add daemonStatus factory to angular.
Used to query the status of daemons (zmc, zma, etc)
This commit is contained in:
parent
dcde5e16ad
commit
d9e65e37f9
|
@ -49,6 +49,9 @@ ZoneMinder.factory('Console', function($http) {
|
|||
return {
|
||||
getConsoleEvents: function(interval) {
|
||||
return $http.get('/api/events/consoleEvents/'+interval+'.json');
|
||||
},
|
||||
daemonStatus: function(id, daemon) {
|
||||
return $http.get('/api/monitors/daemonStatus/id:'+id+'/daemon:'+daemon+'.json');
|
||||
}
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue