Database Schema and Backend Routes - CasstielP/Carbs-and-Me GitHub Wiki
Database Schema

Backend Routes
Users
GET /api/users/:id
- Returns the information for one user
Sessions
GET /api/auth/
- Returns the information for the logged in user
POST /api/auth/signup
- Signs a new user up
POST /api/auth/login
- Logs in a user
DELETE /api/auth/
- Logs out a user
Videos
GET /api/videos
- Returns the information for all videos
POST /api/videos/
- upload a new video
GET /api/videos/:videoId
- Returns the information for one video
PUT /api/videos/:videoId
- Edits the information for one video
DELETE /api/videos/:videoId
- Deletes a video
Comments
GET /api/comments/videos/:videoId
- Returns all comments of a video
POST /api/comments
- create a new comments
GET /api/comments/users/:userId
- Returns the comments made from one user
PUT /api/comments/:commentId
- Edits the information for one comment
DELETE /api/comments/:commentId
- Deletes a comment