From d9e65e37f9ec4849fbf488bd5f85c497ab5dcb23 Mon Sep 17 00:00:00 2001 From: Kyle Johnson Date: Thu, 27 Nov 2014 14:34:08 +0000 Subject: [PATCH] Add daemonStatus factory to angular. Used to query the status of daemons (zmc, zma, etc) --- web/skins/bootstrap/js/app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/skins/bootstrap/js/app.js b/web/skins/bootstrap/js/app.js index c688b3f9e..fcfc841a3 100644 --- a/web/skins/bootstrap/js/app.js +++ b/web/skins/bootstrap/js/app.js @@ -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'); } }; });