Develop API routes for cart actions to support frontend functionality. The routes will include:
POST /cart: Add an item to the cart.
DELETE /cart/:id: Remove an item from the cart.
GET /cart: Fetch all cart items for a user.
These routes will connect to the CartController.js for backend logic and ensure that only authenticated users can perform these actions using AuthMiddleware.js.
Develop API routes for cart actions to support frontend functionality. The routes will include:
These routes will connect to the CartController.js for backend logic and ensure that only authenticated users can perform these actions using AuthMiddleware.js.
Point Value: 3 Size Category: Small