Fix using removed dismiss notification API endpoint
This commit is contained in:
parent
7551c79715
commit
a133955489
|
@ -30,9 +30,7 @@ public struct Notification: Decodable, Sendable {
|
|||
}
|
||||
|
||||
public static func dismiss(id notificationID: String) -> Request<Empty> {
|
||||
return Request<Empty>(method: .post, path: "/api/v1/notifications/dismiss", body: ParametersBody([
|
||||
"id" => notificationID
|
||||
]))
|
||||
return Request<Empty>(method: .post, path: "/api/v1/notifications/\(notificationID)/dismiss")
|
||||
}
|
||||
|
||||
private enum CodingKeys: String, CodingKey {
|
||||
|
|
Loading…
Reference in New Issue