Add getMonitors factory to angular

This commit is contained in:
Kyle Johnson 2014-11-27 14:35:00 +00:00
parent d9e65e37f9
commit b3d1811c43
1 changed files with 3 additions and 0 deletions

View File

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