Move entire endpoint url into config. Fixes #3
This commit is contained in:
parent
8087d0264d
commit
665191e9cd
|
|
@ -80,7 +80,7 @@ class WpApi
|
|||
$query['auth'] = $this->auth;
|
||||
}
|
||||
|
||||
$response = $this->client->get($this->endpoint . '/wp-json/' . $method, $query);
|
||||
$response = $this->client->get($this->endpoint . $method, $query);
|
||||
|
||||
$return = [
|
||||
'results' => $response->json(),
|
||||
|
|
|
|||
|
|
@ -2,6 +2,6 @@
|
|||
|
||||
return array(
|
||||
|
||||
'endpoint' => '<WP_LOCATION>',
|
||||
'endpoint' => 'http://<WP_LOCATION>/wp-json/',
|
||||
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue