-
Notifications
You must be signed in to change notification settings - Fork 1
Backend routes
jas-singh-code edited this page Mar 17, 2021
·
5 revisions
GET / StaticPagesController#root
-
POST api/users
- create a user
-
POST api/session
-login -
DELETE api/session
-logout
-
GET /api/posts
-returns relevent posts using params -
POST /api/posts
-create a new post -
PATCH /api/posts/:Id
-edits the specified post -
DELETE /api/posts/:Id
-deletes the specified post
-
POST api/likes
- like a post or comment -
DELETE api/likes/:id
- delete a like from a post or comment
-
POST api/friend_requests
- create a friend request -
PATCH api/friend_requests/:id
- accept a friend request -
DELETE api/friend_requests/:id
- delete a request
-
DELETE api/friendships/:id
-unfriend a user