fetchPostsByUserId method
Implementation
Future<http.Response> fetchPostsByUserId(id) async {
return get(Uri.parse('$apiURL/posts/byUserId?user=$id'), headers: {
"token":
"cnejwi8c9wehnd8fchni2x239jxexnjx2n23i8xn3oifr0cwd32fjnrf453vreve"
});
}