Able to get own poll answer & poll answer percentage

This commit is contained in:
2025-02-13 21:56:54 +08:00
parent 429ca64f9d
commit e16201a3ad
4 changed files with 28 additions and 4 deletions

View File

@@ -71,6 +71,7 @@ func MapAPIs(app *fiber.App, baseURL string) {
polls.Put("/:pollId", updatePoll)
polls.Delete("/:pollId", deletePoll)
polls.Post("/:pollId/answer", answerPoll)
polls.Get("/:pollId/answer", getMyPollAnswer)
}
subscriptions := api.Group("/subscriptions").Name("Subscriptions API")