forked from shadowfacts/Tusker
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> {
|
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