Backend Routes - SamuelChu91/MoodTube GitHub Wiki
HTML
- GET / StaticPagesController#root
API Endpoints
-
Users
-
- GET /api/users/user_id ...single user's information
-
- POST /api/users ...user signup
-
Session
-
- POST /api/session ...user log in
-
- DELETE /api/session ...user log out
-
Videos
-
- GET /api/videos ...display video index
-
- GET (with id) /api/videos/video_id ...display single video
-
- POST /api/videos ...video upload
-
- DELETE /api/videos/video_id ...remove video
-
- PATCH /api/videos/video_id ...edit video
-
Comments
-
- GET /api/comments/comment_id ...show single comment (other comments attached?)
-
- POST /api/comments ...create a comment
-
- DELETE /api/comments/comment_id ...remove comment
-
- PATCH /api/comments/comment_id ...edit comment