Skip to content

Frontend Routes

katsutori edited this page Feb 10, 2022 · 17 revisions

User-facing routes

Logged Out Views

If user is NOT logged in, the user login and sign up buttons will display on a splash page. The add-a-business/search/category buttons will redirect to the login form.

/

  • GET /
  • GET /login
  • GET /signup

Logged In Views

If the user IS logged in, they will be redirected to a "/" view exclusively for logged in users. The logged in "/" view will allow users to search for businesses by search input or category and see suggested businesses.

/

  • GET /businesses/<int:id>
  • GET /search/query
  • GET /categories/<int:id>/

/businesses/<int:id>

Allow users to view a specific business' page that displays images, reviews, and other relevant business information

  • GET /businesses/<int:id>/photos/upload
  • GET /businesses/<int:id>/photos
  • GET /businesses/<int:id>/reviews/new
  • GET /businesses/edit/<int:id>
  • GET /businesses/<int:id>/reviews/<int:id>/edit

Clone this wiki locally