This endpoint requires authentication.
Path parameters
Response
true if the post is now liked, false if unliked
Updated total likes count
curl -X POST https://api-verifier-2.onrender.com/api/blog/65a1b2c3d4e5f6g7h8i9j0k1/toggle-like \
-H "Authorization: Bearer <your-token>"
{
"liked": true,
"likesCount": 43
}