Fixed Routes covit

This commit is contained in:
Olu Amey
2021-09-08 04:11:00 -04:00
parent 518140e44a
commit b78aa582b5
2 changed files with 3 additions and 6 deletions
+2 -6
View File
@@ -5,17 +5,13 @@ use GuzzleHttp\Client as HTTPClient;
class WpContentsClient
{
public static function serviceGetBlogItems($blogUrl)
public static function serviceGetBlogItems($apiEndpointsUrl)
{
$client = new HTTPClient();
$apiEndpointsConfig = $blogUrl; //"http://172.31.4.19:8000";
// $apiEndpointsConfig = config('ApiEndpoints');
$response = $client->request(
'GET',
"{$apiEndpointsConfig}/wordpress-data"
"{$apiEndpointsUrl}/wordpress-data"
);
return json_decode($response->getBody());
}
}