Backend Routes - n8gallagher/fotopx GitHub Wiki
Backend Routes
HTML
GET /
StaticPagesController#root
API endpoints
users
POST /api/users
- sign upGET /api/users/:id
- profile page for user with id :id
session
POST /api/session
- log inDELETE /api/session
- log out
photos
GET /api/photos
- returns all photosGET /api/photos/:id
- returns the photo with the id :idPOST /api/photos
- creates a photoPATCH /api/photos/:id
- edits a photoDELETE /api/photos/:id
- remove a photo
follows
POST /api/users/:id/follows
- follow a userDELETE /api/users/:id/follows
- unfollow a user