Added APi gate call
This commit is contained in:
@@ -56,8 +56,8 @@ class BaseController extends Controller {
|
|||||||
|
|
||||||
protected function getBlogItems() {
|
protected function getBlogItems() {
|
||||||
// $client = new HTTPClient();
|
// $client = new HTTPClient();
|
||||||
|
$wp_server_api ="http://172.31.4.19:8000/wordpress-data";//http://10.0.0.52:5101/
|
||||||
$wp_contents = file_get_contents('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);
|
//$wp_contents_json = $wp_contents['payload']; // json_encode($wp_contents['payload'],true);
|
||||||
// $myObj = JSON.parse($wp_contents);
|
// $myObj = JSON.parse($wp_contents);
|
||||||
//print_r($myObj);
|
//print_r($myObj);
|
||||||
|
|||||||
Reference in New Issue
Block a user