This endpoint returns the current phase of the election as a single string value. Poll it before taking phase-sensitive actions: check forDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Crypto-Project-ENSTA/back-end/llms.txt
Use this file to discover all available pages before exploring further.
register before adding voters, confirm vote_started before accepting ballot submissions, or verify vote_ended before fetching results. The value is read directly from the voting_config table and reflects real-time state.
Request
Response
The current election phase. One of three possible values:
HTTP status codes
| Code | Meaning |
|---|---|
200 | Current election phase returned successfully. |
404 | No voting configuration record was found in the database. |