Fix polls endpoint close #1489

This commit is contained in:
Thomas Ricouard 2023-07-17 19:37:54 +02:00
parent 9ed785db0e
commit 9e43dc3f6f

View file

@ -7,7 +7,7 @@ public enum Polls: Endpoint {
public func path() -> String {
switch self {
case let .poll(id):
return "polls/\(id)/"
return "polls/\(id)"
case let .vote(id, _):
return "polls/\(id)/votes"
}