From 20a1346591a7abfd1d805c0d6bbcadb8dcec89a4 Mon Sep 17 00:00:00 2001
From: Josh Everett <44347292+MrJoshE@users.noreply.github.com>
Date: Thu, 20 Apr 2023 16:41:55 +0100
Subject: [PATCH] Updated api calls to reflect changes in notification service

---
 src/pages/notifications/notifications.js | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/pages/notifications/notifications.js b/src/pages/notifications/notifications.js
index 1650c1a..568f919 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")}`,
         },
-- 
GitLab