Routes - mwei210/pixionary GitHub Wiki
Routes
API Endpoints
users
POST /api/users
- sign up
GET /api/users
- returns relevant users
photos
GET /api/:user_id/photos
- returns photos from a specific user
GET /api/photos
- returns relevant photos
GET /api/photos/:id
- returns photo
POST /api/photos
- uploads photo
follows
POST /api/follows
- follows a user
DELETE /api/follows
- unfollows a user
Frontend Routes
/login
/signup
/feed
- photo feed, homepage
/profile
- current user's profile
/users/:userId
- other user's profile
/photos/new
- upload a photo
/photos/:photoId
- photo show