From 4d26d229d6905a964b76c132e55f90d7e9ba2632 Mon Sep 17 00:00:00 2001 From: Shafqat Muneer Date: Fri, 17 Jan 2025 23:28:32 +0500 Subject: [PATCH] chore: address review feedback --- .../Data/Network/NotificationsEndpoint.swift | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Notifications/Notifications/Data/Network/NotificationsEndpoint.swift b/Notifications/Notifications/Data/Network/NotificationsEndpoint.swift index db095c89..15129a99 100644 --- a/Notifications/Notifications/Data/Network/NotificationsEndpoint.swift +++ b/Notifications/Notifications/Data/Network/NotificationsEndpoint.swift @@ -39,19 +39,13 @@ enum NotificationsEndpoint: EndPointType { var httpMethod: HTTPMethod { switch self { - case .getNotificationsCount: - return .get - case .getAllNotifications: - return .get - case .getPreferences: + case .getNotificationsCount, .getAllNotifications, .getPreferences: return .get case .updatePreferences: return .post case .markSeen: return .put - case .markRead: - return .patch - case .markAllRead: + case .markRead, .markAllRead: return .patch } }