From e0ba4b9141d48bfae7802d55f67d0822830ec0ac Mon Sep 17 00:00:00 2001 From: Olu Amey Date: Thu, 2 Sep 2021 09:34:38 -0400 Subject: [PATCH] Added APi gate call --- app/Controllers/BaseController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Controllers/BaseController.php b/app/Controllers/BaseController.php index 6f96615..68592db 100644 --- a/app/Controllers/BaseController.php +++ b/app/Controllers/BaseController.php @@ -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);