Fix using removed dismiss notification API endpoint

This commit is contained in:
Shadowfacts 2023-05-07 14:55:38 -04:00
parent 24b467360c
commit 73ca312f43
1 changed files with 1 additions and 3 deletions

View File

@ -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 {