Add 'get' function to Config factory in angular

This commit is contained in:
Kyle Johnson 2015-03-03 09:36:23 -05:00
parent 683c4eed4b
commit 46d1400577
1 changed files with 3 additions and 0 deletions

View File

@ -321,6 +321,9 @@ ZoneMinder.factory('Console', function($http) {
ZoneMinder.factory('Config', function($http) { ZoneMinder.factory('Config', function($http) {
return { return {
get: function() {
return $http.get('/api/configs.json');
},
getCategories: function() { getCategories: function() {
return $http.get('/api/configs/categories.json'); return $http.get('/api/configs/categories.json');
}, },