day-cohort-70 / Bangazon-API-BandyChamps

0 stars 0 forks source link

Bug: Cannot add item to cart #54

Closed samsheps closed 1 month ago

samsheps commented 1 month ago

Issue: User is unable to add products to their cart.

Expected behavior: When a user clicks on "Add to cart" within a product page, that product is added to the user's current order or "cart" and when that user visits their "cart" page, that recently-added product appears as an item.

Current behavior: When a user clicks "Add to cart," a 404 error is shown.

POST http://localhost:8000/products/43/add_to_order 404 (Not Found)

Image