Create API routes for product data management including:
GET /products/[productid] retrieve the product with the specified product id to display on product page.
GET /products/all retrieve all products in the database to display on marketplace page.
POST /products create a new product using details from seller product page.
PUT /products/[productid] update an existing product with the specified product id using details from seller product page.
DELETE /products/[productid] delete an existing product with the specified product id.
These routes will connect to ProductController.js and enforce authentication with middleware to interface with ProfileRoutes.js to allow users to create edit and delete their own products.
Create API routes for product data management including:
These routes will connect to ProductController.js and enforce authentication with middleware to interface with ProfileRoutes.js to allow users to create edit and delete their own products.
Point Value: 4 Feature Size: Medium