Backend Routes - MannanK/Superflix GitHub Wiki
Backend Routes
HTML
GET /
StaticPagesController#root
API Endpoints
users
POST /api/users
: sign up
videos
GET /api/videos
: get all media
GET /api/videos/:id
: get some media with the given id
session
POST /api/session
: login
DELETE /api/session
: logout
list_videos
POST /api/users/list_videos
: add media with the given id (in the body) to the current user's list
DELETE /api/users/list_videos
: delete media with the given id (in the body) from the current user's list
genres
GET /api/genres
: gets all the genres
GET /api/genres/:id
: gets the genre with the given id, along with all the media for that genre