Add Angular service for finding config by Name
This commit is contained in:
parent
7565edfc69
commit
8311951c86
|
@ -147,6 +147,9 @@ ZoneMinder.factory('Config', function($http) {
|
||||||
|
|
||||||
|
|
||||||
//return $http.post ('/api/configs/' + configId + '.json', postData)
|
//return $http.post ('/api/configs/' + configId + '.json', postData)
|
||||||
|
},
|
||||||
|
findByName: function(name) {
|
||||||
|
return $http.get('/api/configs/viewByName/'+name+'.json')
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue