fetchAllPosts method
Implementation
Future<http.Response> fetchAllPosts() {
return get(Uri.parse('$apiURL/posts/all'), headers: {
"token":
"cnejwi8c9wehnd8fchni2x239jxexnjx2n23i8xn3oifr0cwd32fjnrf453vreve"
});
}
Future<http.Response> fetchAllPosts() {
return get(Uri.parse('$apiURL/posts/all'), headers: {
"token":
"cnejwi8c9wehnd8fchni2x239jxexnjx2n23i8xn3oifr0cwd32fjnrf453vreve"
});
}