diff --git a/src/routes/notification.js b/src/routes/notification.js index 83cfa093e54721bda08c955c95db68ba888fe6e9..6f2453a3c228f9fe8db4b4b4ef3953763f33e9b9 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