Skip to content

Frontend Routes

kdng edited this page Mar 11, 2022 · 17 revisions

Navbar

  • A navbar is displayed across all pages of the app, and contains links to:
    • GET /
    • GET /login
    • GET /signup
    • GET /movies
    • GET /watchlists
    • GET /watchlists/watched
    • GET /watchlists/watching
    • GET /watchlists/to-watch
    • GET /movies/:movieId/reviews

/movies

  • This page will display all movies in the movie list
    • Route to page
      • GET /movies

/movies/:id

  • This page will get the user to a specific movie when clicked
    • Route to specific movie
      • GET /movies/:id

/watchlists/title

  • This route will get the user to their specific watchlist when logged in
    • Routes to specific watchlist
      • GET /watchlists/watched
      • GET /watchlists/watching
      • GET /watchlists/to-watch

/movies/:movieId/reviews

  • This route will get the user to the reviews of every movie on the movie list
    • Routes to get/post/update/delete movie reviews:
      • GET /movies/:movieId/reviews/:reviewsId
      • POST /movies/:movieId/reviews/
      • PUT /movies/:movieId/reviews/:reviewsId
      • DELETE /movies/:movieId/reviews/:reviewsId

/signup

  • This route will get the user to the sign up form
    • Routes to page
      • GET /signup
      • POST /signup

/login

  • This route will get the user to the log in form
    • Routes to page
      • GET /login
      • POST /login

Clone this wiki locally