Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Findeton committed Nov 13, 2024
1 parent 7a4f665 commit 9d43734
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions avRegistration/auth-method-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
Expand Down
5 changes: 5 additions & 0 deletions dist/appCommon-v10.5.2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, {});
Expand Down

0 comments on commit 9d43734

Please sign in to comment.