feat: Change endpoint calls

Change the endpoint call so that there is an autocompletion.
This commit is contained in:
Michael Gerdemann
2020-01-17 16:32:02 +01:00
parent 8461d6f68d
commit 774c0ff8bf
2 changed files with 14 additions and 7 deletions

View File

@ -53,7 +53,10 @@ $giteaClient = new Avency\Gitea\Client(
// - - - - -
// Get a single repository
$repository = $giteaClient->api('repositories')->get('owner', 'repoName');
$repository = $giteaClient->repositories()->get('owner', 'repoName');
// Get version
$repository = $giteaClient->miscellaneous()->version();
```
## Versioning