Add Angular service for finding config by Name

This commit is contained in:
Kyle Johnson 2015-01-27 11:14:59 -05:00
parent 7565edfc69
commit 8311951c86
1 changed files with 3 additions and 0 deletions

View File

@ -147,6 +147,9 @@ ZoneMinder.factory('Config', function($http) {
//return $http.post ('/api/configs/' + configId + '.json', postData)
},
findByName: function(name) {
return $http.get('/api/configs/viewByName/'+name+'.json')
}
};
});