Skip to content

Commit

Permalink
fix: typo of routes "DELETE /users/subscriptions"
Browse files Browse the repository at this point in the history
  • Loading branch information
ppolariss authored and fsy2001 committed Nov 29, 2024
1 parent 0e4cc50 commit 8b530c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DanXi Kit/Requests/ForumAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ public enum ForumAPI {

public static func deleteSubscription(holeId: Int) async throws -> [Int] {
let payload = ["hole_id": holeId]
let response: ServerResponse = try await requestWithResponse("/users/subscription", base: forumURL, payload: payload, method: "DELETE")
let response: ServerResponse = try await requestWithResponse("/users/subscriptions", base: forumURL, payload: payload, method: "DELETE")
return response.data
}

Expand Down

0 comments on commit 8b530c6

Please sign in to comment.