Added APi gate call

This commit is contained in:
Olu Amey
2021-09-02 09:34:38 -04:00
parent e2ca9baf7b
commit e0ba4b9141
+2 -2
View File
@@ -56,8 +56,8 @@ class BaseController extends Controller {
protected function getBlogItems() {
// $client = new HTTPClient();
$wp_contents = file_get_contents('http://10.0.0.52:5101/');
$wp_server_api ="http://172.31.4.19:8000/wordpress-data";//http://10.0.0.52:5101/
$wp_contents = file_get_contents($wp_server_api);
//$wp_contents_json = $wp_contents['payload']; // json_encode($wp_contents['payload'],true);
// $myObj = JSON.parse($wp_contents);
//print_r($myObj);