Update UI result

This commit is contained in:
Aditya Siregar
2025-08-16 01:51:37 +07:00
parent 228f6a78c9
commit 104cd987e9
7 changed files with 109 additions and 16 deletions
+1
View File
@@ -93,4 +93,5 @@ type VoteEventHandler interface {
GetVoteResults(c *gin.Context)
CheckVoteStatus(c *gin.Context)
GetCandidates(c *gin.Context)
GetVoteEventDetails(c *gin.Context)
}
+1
View File
@@ -174,6 +174,7 @@ func (r *Router) addAppRoutes(rg *gin.Engine) {
voteEvents.GET("/:id/candidates", r.voteEventHandler.GetCandidates)
voteEvents.GET("/:id/results", r.voteEventHandler.GetVoteResults)
voteEvents.GET("/:id/vote-status", r.voteEventHandler.CheckVoteStatus)
voteEvents.GET("/:id/details", r.voteEventHandler.GetVoteEventDetails)
}
candidates := v1.Group("/candidates")