Skip to content

Commit 665191e

Browse files
author
Ben Speakman
committed
Move entire endpoint url into config. Fixes #3
1 parent 8087d02 commit 665191e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Cyberduck/LaravelWpApi/WpApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function _get($method, array $query = array())
8080
$query['auth'] = $this->auth;
8181
}
8282

83-
$response = $this->client->get($this->endpoint . '/wp-json/' . $method, $query);
83+
$response = $this->client->get($this->endpoint . $method, $query);
8484

8585
$return = [
8686
'results' => $response->json(),

src/config/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
return array(
44

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

77
);

0 commit comments

Comments
 (0)