mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-10 09:13:11 +08:00
Centralized prefix for problem detail types
This commit is contained in:
@@ -127,3 +127,8 @@ function camelCaseToHumanFriendly(string $value): string
|
||||
|
||||
return ucfirst($filter->filter($value));
|
||||
}
|
||||
|
||||
function toProblemDetailsType(string $errorCode): string
|
||||
{
|
||||
return sprintf('https://shlink.io/api/error/%s', $errorCode);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user