Frontend Routes - dompatrick1/react-project GitHub Wiki

User-Facing Routes

/login

Log-in Page

This page displays a log-in form:

 * GET   /login
 
 * POST  /login

/signup

Sign-Up Page

This page displays a registration form:

 * GET   /signup

 * POST  /signup

/

This page displays lists of products available, a navbar with login, signup, and demo user.

 * GET   /

/users/:id

Home Page

This page is where a user lands after logging in or signing up which consists of the users cart, a navbar with a logout option, and a lists of products available

 * GET   /users/:id

/products/:id

Product page

This page is where the specific product is displayed which includes the reviews below the product information:

 * GET        /products/:id
 * POST       /products/:id/reviews
 * PUT/PATCH  /products/:id/reviews/:id
 * DELETE     /products/:id/reviews/:id

/users/:id/cart

Cart Page

This page is where the users cart items will be displayed

* GET /users/:id/cart
* POST /users/:id/cart/products
* PUT/PATCH /users/:id/cart/products/:id
* DELETE /users/:id/cart/products/:id