Fix using removed dismiss notification API endpoint
This commit is contained in:
parent
24b467360c
commit
73ca312f43
|
@ -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