diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml index fe28847f7..3f14e41e5 100644 --- a/docs/api/swagger.yaml +++ b/docs/api/swagger.yaml @@ -7522,7 +7522,7 @@ paths: summary: View poll with given ID. tags: - polls - /api/v1/polls/{id}/vote: + /api/v1/polls/{id}/votes: post: operationId: pollVote parameters: diff --git a/internal/api/client/polls/polls_vote.go b/internal/api/client/polls/polls_vote.go index c5344326f..192ecbc0f 100644 --- a/internal/api/client/polls/polls_vote.go +++ b/internal/api/client/polls/polls_vote.go @@ -29,7 +29,7 @@ import ( "github.com/superseriousbusiness/gotosocial/internal/oauth" ) -// PollVotePOSTHandler swagger:operation POST /api/v1/polls/{id}/vote pollVote +// PollVotePOSTHandler swagger:operation POST /api/v1/polls/{id}/votes pollVote // // Vote with choices in the given poll. //