backend routes - Hubear41/Hu-sflix GitHub Wiki
Backend Routes
HTML
GET /
StaticPagesController#root
API Endpoints
users
GET /api/users
- returns the user's account information
POST /api/users
- sign up
session
POST /api/session
- log in
DELETE /api/session
- log out
profiles
GET /api/profiles
- gets the all profiles
GET /api/profiles/:profile_id
- gets all profile information
PATCH /api/profiles/:profile_id
- edits profile information
POST /api/profiles/
- creates a new profile
DELETE /api/profiles/:profile_id
- deletes a profile
videos
GET /api/videos/:video_id
- returns video
shows
GET /api/shows/:show_id
- gets show information and other episodes if they exist
GET /api/shows
- get all show information
likes
POST /api/shows/:show_id/likes
- add a like
DELETE /api/shows/:show_id/likes
- remove a like
genres
GET /api/genres/:genre_id
- get genre information