Skip to content

Commit 278ea26

Browse files
authored
Merge pull request #48 from CristalTeam/hotfix/lowercased_endpoint
Fix endpoint transformed to lowercase
2 parents 17119f7 + a8aed90 commit 278ea26

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Api.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ public function __call($name, $arguments)
5454

5555
preg_match('/^(get|create|update|delete)([\w\-_\/]+?)$/', $name, $matches);
5656

57-
$endpoint = strtolower($matches[2]);
57+
$endpoint = lcfirst($matches[2]);
58+
5859
if ('get' === $matches[1]) {
5960
if (array_key_exists(0, $arguments) && !is_array($arguments[0])) {
6061
return $this->findOne($endpoint, ...$arguments);

0 commit comments

Comments
 (0)