From b3d1811c437c8398261ab05e1d9a52a4fca3540d Mon Sep 17 00:00:00 2001 From: Kyle Johnson Date: Thu, 27 Nov 2014 14:35:00 +0000 Subject: [PATCH] Add getMonitors factory to angular --- 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 fcfc841a3..dbc745b2d 100644 --- a/web/skins/bootstrap/js/app.js +++ b/web/skins/bootstrap/js/app.js @@ -50,6 +50,9 @@ ZoneMinder.factory('Console', function($http) { getConsoleEvents: function(interval) { return $http.get('/api/events/consoleEvents/'+interval+'.json'); }, + getMonitors: function() { + return $http.get('/api/monitors.json'); + }, daemonStatus: function(id, daemon) { return $http.get('/api/monitors/daemonStatus/id:'+id+'/daemon:'+daemon+'.json'); }