Backend Routes - slimjim49j/ViewTube GitHub Wiki

Backend Routes

HTML

  • GET / ``StaticPagesController#root```

API Endpoints

users

  • POST /api/users - create a user

session

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

channels

  • GET /api/channels/:title - show a single channel's home page
  • GET /api/channels/:title/videos - a channel's videos

videos

  • GET /api/videos/:video_id - show a video
  • POST /api/videos - create a video