mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[bugfix] Correct Swagger path for poll voting (#2996)
Updates the Swagger spec to match the router. Fixes #2994
This commit is contained in:
@@ -7522,7 +7522,7 @@ paths:
|
|||||||
summary: View poll with given ID.
|
summary: View poll with given ID.
|
||||||
tags:
|
tags:
|
||||||
- polls
|
- polls
|
||||||
/api/v1/polls/{id}/vote:
|
/api/v1/polls/{id}/votes:
|
||||||
post:
|
post:
|
||||||
operationId: pollVote
|
operationId: pollVote
|
||||||
parameters:
|
parameters:
|
||||||
|
@@ -29,7 +29,7 @@ import (
|
|||||||
"github.com/superseriousbusiness/gotosocial/internal/oauth"
|
"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.
|
// Vote with choices in the given poll.
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user