Move entire endpoint url into config. Fixes #3

This commit is contained in:
Ben Speakman 2015-10-13 11:44:04 +01:00
parent 8087d0264d
commit 665191e9cd
2 changed files with 2 additions and 2 deletions

View file

@ -80,7 +80,7 @@ class WpApi
$query['auth'] = $this->auth; $query['auth'] = $this->auth;
} }
$response = $this->client->get($this->endpoint . '/wp-json/' . $method, $query); $response = $this->client->get($this->endpoint . $method, $query);
$return = [ $return = [
'results' => $response->json(), 'results' => $response->json(),

View file

@ -2,6 +2,6 @@
return array( return array(
'endpoint' => '<WP_LOCATION>', 'endpoint' => 'http://<WP_LOCATION>/wp-json/',
); );