Skip to content

Commit

Permalink
reverse router.getItems in clothingitems.js
Browse files Browse the repository at this point in the history
  • Loading branch information
amay0808 committed Mar 20, 2024
1 parent e87fdc3 commit afc92d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/clothingItems.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit afc92d4

Please sign in to comment.