Routes - lukewhchen/babybook GitHub Wiki
Frontend Routes
/log-in
/sign-up
/users/:userId - user profile
/posts/:postId - post show
/posts/:postId/edit - update a post
API Endpoints
users
GET /api/users - returns the user information for the User Search feature
POST /api/users - sign up
posts
POST /api/posts - creates a post
PATCH /api/posts/:id - edit a post
DELETE /api/posts/:id - remove a post
comments
POST /api/comments - creates a comment
PATCH /api/comments/:id - edit a comment
DELETE /api/comments/:id - remove a comment
friendships
POST /api/users/friend_id - be friend
DELETE /api/users/friend_id - unfriend
likes
POST /api/likes - like
DELETE /api/likes - unlike