From d6f349c243f847981a0a928db84e12d691c5ae54 Mon Sep 17 00:00:00 2001 From: Josh Everett <44347292+MrJoshE@users.noreply.github.com> Date: Thu, 20 Apr 2023 16:47:53 +0100 Subject: [PATCH] reverted method change for deleting notifications --- src/routes/notification.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/notification.js b/src/routes/notification.js index 83cfa09..6f2453a 100644 --- a/src/routes/notification.js +++ b/src/routes/notification.js @@ -56,7 +56,7 @@ router.get("/info", async (req, res) => { }); -router.get("/delete/:id", async (req, res) => { +router.delete("/delete/:id", async (req, res) => { // delete a notification // grab the notification id // delete on the database @@ -85,7 +85,7 @@ router.get("/delete/:id", async (req, res) => { }); -router.get("/delete/all", async (req, res) => { +router.delete("/delete-all", async (req, res) => { console.log('delete all notifications called') // delete all the notifications // grab the user id -- GitLab