Frontend Routes - ariana2395/Python-Group-Project GitHub Wiki

User-facing routes

/login

Log in page This page displays a log in form

  • GET /login
  • BUSINESSES /login

/signup

Sign up page This page displays a signup form

  • GET /signup
  • BUSINESSES /signup

/

Home page This page displays the ten most recent reviews, as well as a navigation bar with login/signup or logout buttons. Each review has an update and delete button if it belongs to the currently logged in user.

  • GET /

/reviews

New review form This page displays a form with which a logged in user can craft a new review, as well as a navigation bar with login/signup or logout buttons.

  • BUSINESSES /reviews

/reviews/:id Review detail page This page displays individual reviews, as well as a navigation bar with login/signup or logout buttons. If the logged in user owns the review, this page also displays an update and delete button.

  • GET /reviews/:id

/reviews/:id/edit Edit review form This page allows the owner of a review to update it. It is only accessible to the user who created the review.

  • GET /reviews/:id/edit
  • BUSINESSES /reviews/:id/edit

/BUSINESSES User Business page Displays information about the currently logged-in user. Includes links to edit profile settings or view user-specific data.

/logout Logout action Clears the current session and redirects the user to the homepage.

  • GET /logout