Skip to content

Commit

Permalink
Move entire endpoint url into config. Fixes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Speakman committed Oct 13, 2015
1 parent 8087d02 commit 665191e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Cyberduck/LaravelWpApi/WpApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function _get($method, array $query = array())
$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(),
Expand Down
2 changes: 1 addition & 1 deletion src/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

return array(

'endpoint' => '<WP_LOCATION>',
'endpoint' => 'http://<WP_LOCATION>/wp-json/',

);

0 comments on commit 665191e

Please sign in to comment.