diff --git a/src/pages/notifications/notifications.js b/src/pages/notifications/notifications.js index 1650c1a6f4c8fff562dfcfcce4be66c5b8eb2036..568f9195ca19f3c146fc3189168ff58e02d6a184 100644 --- a/src/pages/notifications/notifications.js +++ b/src/pages/notifications/notifications.js @@ -46,7 +46,6 @@ const NotificationsPage = () => { const deleteNotification = async (notificationId) => { try { const response = await fetch(`${baseUrl}/notification/delete/${notificationId}`, { - method: "DELETE", headers: { Authorization: `Bearer ${localStorage.getItem("token")}`, }, @@ -78,8 +77,7 @@ const NotificationsPage = () => { const clearAllNotifications = async () => { // make a request to the notifications microservice to clear all notifications try { - const response = await fetch(`${baseUrl}/notification/delete/all/`, { - method: "DELETE", + const response = await fetch(`${baseUrl}/notification/delete/all`, { headers: { Authorization: `Bearer ${localStorage.getItem("token")}`, },