fix(api): correct condition for API request handling

Updated the condition to include 'api' in the request check.
This commit is contained in:
Jérémy Munsch 2026-08-12 17:32:19 +02:00
parent 33f3aaf37f
commit 699cdf7f8e
Signed by: forge-joniko
GPG key ID: D7EFE2F5CB6CC0E4

View file

@ -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;
}