Skip to content

Commit

Permalink
Merge pull request #18 from agostinofiscale/feature/change-typeresour…
Browse files Browse the repository at this point in the history
…ce-endpoints

Change TypeResource endpoints
  • Loading branch information
PyaeSoneAungRgn authored Jul 15, 2024
2 parents cd7c37a + 0250e77 commit de9989a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Resources/TypeResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ class TypeResource extends BaseResource
public function all(): array
{
return $this->get(
url: 'core/regions'
url: 'core/types'
);
}

public function byId(int|string $id): array
{
return $this->get(
url: "core/regions/{$id}"
url: "core/types/{$id}"
);
}

Expand Down

0 comments on commit de9989a

Please sign in to comment.