From 699cdf7f8e0c16395edd383c4b61327e22e6d931 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Wed, 12 Aug 2026 17:32:19 +0200 Subject: [PATCH] fix(api): correct condition for API request handling Updated the condition to include 'api' in the request check. --- src/Presentation/Web/Exceptions/WebExceptionRenderer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }