Add daemonStatus factory to angular.

Used to query the status of daemons (zmc, zma, etc)
This commit is contained in:
Kyle Johnson 2014-11-27 14:34:08 +00:00
parent dcde5e16ad
commit d9e65e37f9
1 changed files with 3 additions and 0 deletions

View File

@ -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');
}
};
});