Skip to content

Commit 76eb05b

Browse files
committed
Fix: cases of class-call in dispatching
1 parent 3f349d0 commit 76eb05b

File tree

3 files changed

+63
-63
lines changed

3 files changed

+63
-63
lines changed

application/controllers/ApiController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ public function indexAction(): never
4141
}
4242

4343
$params = $request->getParams();
44-
$version = Str::camel($params['version']);
45-
$endpoint = Str::camel($params['endpoint']);
44+
$version = ucfirst(Str::camel($params['version']));
45+
$endpoint = ucfirst(Str::camel($params['endpoint']));
4646
$identifier = $params['identifier'] ?? null;
4747

4848
$module = (($moduleName = $request->getModuleName()) !== null)

library/Notifications/Api/V1/ContactGroups.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class ContactGroups extends ApiV1
6060
{
6161
public function getEndpoint(): string
6262
{
63-
return 'contactgroups';
63+
return 'contact-groups';
6464
}
6565

6666
/**

0 commit comments

Comments
 (0)