Support multiple elections in the API and routes
rkorsak opened this issue · 0 comments
rkorsak commented
We expect to be able to handle multiple elections in the future, and the API/routing layer will need a breaking change to support that.
We should:
- Modify the
DataAccess
interface with agetElections
method instead ofgetElectionDescription
- Modify the routes so that the election ID is part of the route
- Load the elections at the root of the app and redirect to the first election in the array once it loads