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> {
|
public static func dismiss(id notificationID: String) -> Request<Empty> {
|
||||||
return Request<Empty>(method: .post, path: "/api/v1/notifications/dismiss", body: ParametersBody([
|
return Request<Empty>(method: .post, path: "/api/v1/notifications/\(notificationID)/dismiss")
|
||||||
"id" => notificationID
|
|
||||||
]))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private enum CodingKeys: String, CodingKey {
|
private enum CodingKeys: String, CodingKey {
|
||||||
|
|
Loading…
Reference in New Issue