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 /sign-up
    • 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
  • GET /movies

/movies/:id

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

/watchlists

  • This page will get the user to their own watchlist when logged in
    • Route to watchlist
      • GET /watchlists

/watchlists/name

  • 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/new
    • PUT /movies/:movieId/reviews/:reviewsId
    • DELETE /movies/:movieId/reviews/:reviewsId

Clone this wiki locally