ben40d9/ecom-nextjs

Prop Fetching: load product data from API

rconjoe opened this issue · 0 comments

Add routes to your next.js API that return:

  1. All products /api/products
  2. An individual product, based on ID: /api/products/:id

Call those new routes to load product data into your /products page. Use the following prop fetching methods and be prepared to explain the difference between the two: