From fd284db1c26391546543cfece460e0133ca5c497 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Wed, 12 Aug 2026 17:30:22 +0200 Subject: [PATCH] fix(api): correct JSON rendering condition for API requests Updated the condition to ensure JSON responses are rendered for both 'api/*' and 'api' requests. --- bootstrap/exceptions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap/exceptions.php b/bootstrap/exceptions.php index 2a96e0d..800bfec 100644 --- a/bootstrap/exceptions.php +++ b/bootstrap/exceptions.php @@ -30,6 +30,6 @@ return function (Exceptions $exceptions): void { }); $exceptions->shouldRenderJsonWhen( - fn (Request $request) => $request->is('api/*'), + fn (Request $request) => $request->is('api/*', 'api'), ); };