Add 'get' function to Config factory in angular
This commit is contained in:
parent
683c4eed4b
commit
46d1400577
|
@ -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');
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue