Frontend Routes - goosey-goose/CODENAME-KETCHUP GitHub Wiki

User-facing routes

/login

Login page

This page displays a login form.

  • GET /login
  • POST /login

/signup

Sign-up page

This page displays a sign-up form.

  • GET /signup
  • POST /signup

/

Home page

This page displays shows, as well as a navigation bar with login/logout and sign-up buttons. Users who are not logged in are prompted to log in when attempting to interact with the shows. Logged-in users can interact with the shows on this page.

  • GET /
  • POST /shows

/shows

Shows page

This page displays shows for logged-in users. Logged-in users can search or filter across the shows database.

  • GET /shows
  • POST /shows

/shows/:id

Individual show page

This page displays all of the details for a particular show. Logged-in users can submit reviews for shows from this page. (As a bonus feature, logged-in users can comment on reviews for the shows on this page).

  • GET /shows/:id
  • POST /shows/:id

/user/:id

User profile page

This page displays an individual user's profile page. The profile includes their bio, a profile picture, and the user's watch lists or "collections." Users are able to edit their profiles from this page.

  • PUT or PATCH /user/:id
  • DELETE /user/:id