Skip to content

Commit

Permalink
Merge pull request #10 from answear/fix-base-url
Browse files Browse the repository at this point in the history
Fixed: base_uri does not set correctly
  • Loading branch information
yekovalenkoa committed Feb 8, 2024
2 parents a094849 + 4cbaf68 commit 1d23183
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Client/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function __construct(
) {
$this->client = $client ?? new GuzzleClient(
[
'base_uri' => $this->configProvider->baseUrl,
'base_uri' => rtrim($this->configProvider->baseUrl, '/') . '/',
]
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Request/FindPointsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class FindPointsRequest implements Request
{
private const ENDPOINT = '/points';
private const ENDPOINT = 'points';
private const HTTP_METHOD = 'GET';

private array $searchCriteria;
Expand Down

0 comments on commit 1d23183

Please sign in to comment.