Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Crypto-Project-ENSTA/front-end/llms.txt

Use this file to discover all available pages before exploring further.

This endpoint returns the system’s current lifecycle phase. Every client-facing page uses this value to decide which UI to render — whether to show the registration form, the ballot, or the published results. Poll this endpoint at page load to gate access to phase-specific features.
GET /voting/vote-status
No request body is required.

Response fields

voting_status
"register" | "vote_started" | "vote_ended"
The current lifecycle phase of the voting system.

Status values

  • register — Registration is open. Voters can enroll but no ballots can be cast yet.
  • vote_started — Voting is active. Registered voters can submit their ballots.
  • vote_ended — Voting is closed. Ballots have been counted and results are available at GET /results/tally.

Example request

curl "$API_URL/voting/vote-status"

Example responses

{
  "voting_status": "register"
}

Build docs developers (and LLMs) love