Backend Routes - PaulG21/Netflix-Clone GitHub Wiki

HTML

  • GET / StaticPagesController#root

Users

  • GET /api/users - Returns user's info

Session

  • POST /api/session - Log in
  • DELETE /api/session - Log out

Movies

  • GET /api/browser - User's homepage with Movie Index
  • GET /api/watch/:id - Movie playback

Genre

  • GET /api/genre - Movies based on genre selected

My List

  • GET /api/mylist/:user_id - All Movies saved/added by user
  • POST /api/mylist/:user_id - Add Movie to current user's My List
  • DELETE /api/mylist/:user_id - Removes Move from user's My List