diff --git a/src/Cyberduck/LaravelWpApi/WpApi.php b/src/Cyberduck/LaravelWpApi/WpApi.php index cca1585..ad1c239 100755 --- a/src/Cyberduck/LaravelWpApi/WpApi.php +++ b/src/Cyberduck/LaravelWpApi/WpApi.php @@ -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(), diff --git a/src/config/config.php b/src/config/config.php index d71cdca..ee41d48 100644 --- a/src/config/config.php +++ b/src/config/config.php @@ -2,6 +2,6 @@ return array( - 'endpoint' => '', + 'endpoint' => 'http:///wp-json/', );