Skip to content

Commit

Permalink
✨ Download election turnout (#387)
Browse files Browse the repository at this point in the history
Parent issue: sequentech/meta#209

## Changes
- Add api call to download turnout to auth api.
  • Loading branch information
Findeton committed Apr 16, 2024
1 parent 09d989d commit 29c24aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions avRegistration/auth-method-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,11 @@ angular.module('avRegistration')
return $http.post(url, {});
};

authmethod.getTurnout = function (id) {
var url = backendUrl + 'auth-event/' + id + '/turnout/';
return $http.get(url);
};

return authmethod;
});

Expand Down
4 changes: 4 additions & 0 deletions dist/appCommon-vmaster.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,10 @@ angular.module("avRegistration").config(function() {}), angular.module("avRegist
cancelTask: function(url) {
url = backendUrl + "tasks/" + url + "/cancel/";
return $http.post(url, {});
},
getTurnout: function(url) {
url = backendUrl + "auth-event/" + url + "/turnout/";
return $http.get(url);
}
};
return authmethod;
Expand Down

0 comments on commit 29c24aa

Please sign in to comment.