Resetting an election just using the endpoint was not possible because you need to delete the session data of the mixnet. I configured the app such that when you run the start command, it initialised the whole state of the application and you can start voting in a new election. In more precise terms, the election data in all mixnet servers are deleted and created again. Afterwards, they jointly computer a public key and post it to the web app.
/reset is no longer an endpoint because of the aforementioned reason, but it is indeed a method in the app which is called whenever the app is started again.
Fix #24
Resetting an election just using the endpoint was not possible because you need to delete the session data of the mixnet. I configured the app such that when you run the start command, it initialised the whole state of the application and you can start voting in a new election. In more precise terms, the election data in all mixnet servers are deleted and created again. Afterwards, they jointly computer a public key and post it to the web app.
/reset
is no longer an endpoint because of the aforementioned reason, but it is indeed a method in the app which is called whenever the app isstart
ed again.