fix(api): correct condition for JSON request handling
Ensure proper handling of requests that expect JSON responses.
This commit is contained in:
parent
fd284db1c2
commit
33f3aaf37f
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ final readonly class ApiExceptionDispatcher
|
|||
|
||||
public function render(Throwable $e, Request $request): ?JsonResponse
|
||||
{
|
||||
if (! $request->is('api/*') && ! $request->wantsJson()) {
|
||||
if (! $request->is('api/*', 'api') && ! $request->wantsJson()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue