📸 Social Media
Follow or unfollow user
The API endpoint allows users to follow or unfollow other users within the application.
When accessing this endpoint, users can choose to follow or unfollow a specific user, thereby establishing or severing a connection between their accounts.
post/social-media/follow/{toBeFollowedUserId}
Response
Follow or unfollow user
Example response
{
"data": {
"following": true
},
"message": "Followed successfully",
"statusCode": 200,
"success": true
}