Skip to content

Commit

Permalink
Merge pull request #2 from Crypt4/develop
Browse files Browse the repository at this point in the history
1.0.1 fixed
  • Loading branch information
eren-crypto committed Jun 17, 2023
2 parents d71ebdf + acfbbbc commit 764f939
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Binary file removed nadi-php-uml-diagram.png
Binary file not shown.
5 changes: 4 additions & 1 deletion src/Transporter/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ class Http implements Contract

protected string $endpoint;

protected string $version;

protected $configurations = [];

protected $storage = [];
Expand All @@ -35,6 +37,7 @@ public function configure(array $configurations = []): self
TransporterException::throwIfMissingCredentials($key, $token);

$this->endpoint = $endpoint;
$this->version = $version;

$this->setClient(
new Client([
Expand Down Expand Up @@ -91,6 +94,6 @@ public function verify()

public function url(string $endpoint)
{
return rtrim($this->endpoint, '/').'/'.trim($endpoint, '/');
return rtrim($this->endpoint, '/').'/'.trim($this->version, '/').'/'.'issues'.'/'.trim($endpoint, '/');
}
}

0 comments on commit 764f939

Please sign in to comment.