From afc92d41507e07544da1800953f598b3c86b0597 Mon Sep 17 00:00:00 2001 From: Adrian Mayfield Date: Wed, 20 Mar 2024 04:36:21 -0700 Subject: [PATCH] reverse router.getItems in clothingitems.js --- routes/clothingItems.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/clothingItems.js b/routes/clothingItems.js index 94ccf0a..371e692 100644 --- a/routes/clothingItems.js +++ b/routes/clothingItems.js @@ -13,9 +13,9 @@ const { getItemById, } = require("../controllers/clothingItems"); +router.get("/", getItems); router.get("/:id", getItemById); router.post("/", auth, validateClothingItem, createItem); -router.get("/", getItems); router.delete("/:itemId", auth, validateId, deleteItem); router.put("/:itemId/likes", auth, validateId, likeItem); // Corrected the route to 'likes' router.delete("/:itemId/likes", auth, validateId, unlikeItem); // Corrected the route to 'likes'