diff --git a/src/Presentation/Web/Exceptions/WebExceptionRenderer.php b/src/Presentation/Web/Exceptions/WebExceptionRenderer.php index f394e2e..7ca7912 100644 --- a/src/Presentation/Web/Exceptions/WebExceptionRenderer.php +++ b/src/Presentation/Web/Exceptions/WebExceptionRenderer.php @@ -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; }