diff --git a/avRegistration/auth-method-service.js b/avRegistration/auth-method-service.js index 21924fd8..43b1245d 100644 --- a/avRegistration/auth-method-service.js +++ b/avRegistration/auth-method-service.js @@ -778,6 +778,12 @@ angular.module('avRegistration') return $http.post(url, data); }; + authmethod.deleteElections = function(electionIds) { + var url = backendUrl + 'auth-event/delete-elections/'; + var data = {"election-ids": electionIds}; + return $http.post(url, data); + }; + authmethod.unpublishResults = function(eid) { var url = backendUrl + 'auth-event/'+eid+'/unpublish-results/'; var data = {}; diff --git a/dist/appCommon-v10.5.2.js b/dist/appCommon-v10.5.2.js index cbe36355..83690061 100644 --- a/dist/appCommon-v10.5.2.js +++ b/dist/appCommon-v10.5.2.js @@ -328,6 +328,11 @@ angular.module("avRegistration").config(function() {}), angular.module("avRegist }, authmethod.allowTally = function(url) { url = backendUrl + "auth-event/" + url + "/allow-tally/"; return $http.post(url, {}); + }, authmethod.deleteElections = function(data) { + var url = backendUrl + "auth-event/delete-elections/", data = { + "election-ids": data + }; + return $http.post(url, data); }, authmethod.unpublishResults = function(url) { url = backendUrl + "auth-event/" + url + "/unpublish-results/"; return $http.post(url, {});