[bugfix] Correct Swagger path for poll voting (#2996)

Updates the Swagger spec to match the router.

Fixes #2994
This commit is contained in:
Vyr Cossont 2024-06-12 02:16:46 -07:00 committed by GitHub
parent 611f9de39b
commit dcf825bd87
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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:

View file

@ -29,7 +29,7 @@
"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.
//