fix(api): correct condition for API request handling
Updated the condition to include 'api' in the request check.
This commit is contained in:
parent
33f3aaf37f
commit
699cdf7f8e
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ final readonly class WebExceptionRenderer
|
|||
{
|
||||
public function render(Throwable $e, Request $request): ?Response
|
||||
{
|
||||
if ($request->is('api/*') || $request->wantsJson()) {
|
||||
if ($request->is('api/*', 'api') || $request->wantsJson()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue