summaryrefslogtreecommitdiff
path: root/internal/api/client/polls
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/client/polls')
-rw-r--r--internal/api/client/polls/polls_get.go2
-rw-r--r--internal/api/client/polls/polls_vote.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/internal/api/client/polls/polls_get.go b/internal/api/client/polls/polls_get.go
index 0b15c0ed1..fc89255e9 100644
--- a/internal/api/client/polls/polls_get.go
+++ b/internal/api/client/polls/polls_get.go
@@ -96,5 +96,5 @@ func (m *Module) PollGETHandler(c *gin.Context) {
return
}
- c.JSON(http.StatusOK, poll)
+ apiutil.JSON(c, http.StatusOK, poll)
}
diff --git a/internal/api/client/polls/polls_vote.go b/internal/api/client/polls/polls_vote.go
index e5281b3fc..0ab5ac20c 100644
--- a/internal/api/client/polls/polls_vote.go
+++ b/internal/api/client/polls/polls_vote.go
@@ -117,7 +117,7 @@ func (m *Module) PollVotePOSTHandler(c *gin.Context) {
return
}
- c.JSON(http.StatusOK, poll)
+ apiutil.JSON(c, http.StatusOK, poll)
}
func bindChoices(c *gin.Context) ([]int, error) {