From 8311951c86d16f490e290a79a97d3c951a59e03f Mon Sep 17 00:00:00 2001 From: Kyle Johnson Date: Tue, 27 Jan 2015 11:14:59 -0500 Subject: [PATCH] Add Angular service for finding config by Name --- web/skins/bootstrap/js/app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/skins/bootstrap/js/app.js b/web/skins/bootstrap/js/app.js index 12efe874f..b60ff4514 100644 --- a/web/skins/bootstrap/js/app.js +++ b/web/skins/bootstrap/js/app.js @@ -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') } }; });