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 authored Apr 16, 2024
1 parent 30c6a51 commit 51e6798
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-v10.3.0.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 51e6798

Please sign in to comment.