Layout Framework - michellekontoff/spudhub GitHub Wiki

User-facing routes

/login

This page displays a login form

  • GET /users/login
  • POST /users/login
  • GET /users/signup Reroutes to sign up form

/signup

This page displays a signup form.

  • GET /users/signup
  • POST /users/signup
  • GET /users/login Reroutes to log in form

/

This page displays the users and their products available for purchase

  • GET /
  • GET /products/id
  • GET /users/id
  • GET /cart confirm this

/users/id

this page displays a user information and their products, if the user logged in is the same as the page. CRUD options also appear.

  • GET /products/id takes you directly to the product page
  • GET /users/id recent reviews are displayed here. takes you to the page of another user if clicked on
  • GET / go to the home page

/products/id

this page displays a product. if the product belongs to the user logged in, CRUD options appear. Other users and not-logged in users can view the produce but only a logged in user can purchase

  • GET /users/id can go to another user page from the reviews section, or from the seller of the produce
  • GET / go to the home page