batterydied / Aquatica

0 stars 0 forks source link

Create CartRoutes.js #51

Open devinbowler opened 1 day ago

devinbowler commented 1 day ago

Develop API routes for cart actions to support frontend functionality. The routes will include:

  1. POST /cart: Add an item to the cart.
  2. DELETE /cart/:id: Remove an item from the cart.
  3. 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.

Point Value: 3 Size Category: Small