diff --git a/src/Presentation/Api/Exceptions/ApiExceptionDispatcher.php b/src/Presentation/Api/Exceptions/ApiExceptionDispatcher.php index 0863c10..e2460ee 100644 --- a/src/Presentation/Api/Exceptions/ApiExceptionDispatcher.php +++ b/src/Presentation/Api/Exceptions/ApiExceptionDispatcher.php @@ -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; }