Skip to content

Commit

Permalink
chore: address review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
shafqat-muneer committed Jan 17, 2025
1 parent d799d7f commit 4d26d22
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 4d26d22

Please sign in to comment.