-
Notifications
You must be signed in to change notification settings - Fork 0
Backend Routes
jrogergordon edited this page Aug 12, 2022
·
5 revisions
-
GET-StaticPagesController#root
-
GET/api/users/:userId- returns user show page, including all user's posts -
POST/api/users- sign up
-
POST/api/session- log in -
DELETE/api/session- log out
-
GET/api/posts- return all posts -
GET/api/post/:id- return a post -
POST/api/posts- create a post -
PATCH/api/posts/:id- edit a post -
DELETE/api/posts/:id- remove a post
-
POST/api/posts/:post_id/likes- like a post -
DELETE/api/posts/:post_id/likes- unlike a post
-
POST/api/users/:user_id/follows- follow a user -
DELETE/api/users/:user_id/follows- unfollow a user