Welcome to the Voting Application
Available Endpoints:
- POST /signup - Create a new user account
- POST /signin - Sign in and get a JWT token
- GET /profile - Get user profile details (Requires JWT)
- PUT /profile/password - Update user password (Requires JWT)
- POST / - Create a new candidate (Admin only, Requires JWT)
- PUT /:candidateId - Update candidate details (Admin only, Requires JWT)
- DELETE /:candidateId - Delete a candidate (Admin only, Requires JWT)
- GET / - Get list of all candidates (Public)
- POST /vote/:candidateId - Vote for a candidate (Requires JWT)
- GET /vote/counts - Get vote counts sorted by number of votes (Public)