fix(api): correct JSON rendering condition for API requests
Updated the condition to ensure JSON responses are rendered for both 'api/*' and 'api' requests.
This commit is contained in:
parent
04243860ce
commit
fd284db1c2
1 changed files with 1 additions and 1 deletions
|
|
@ -30,6 +30,6 @@ return function (Exceptions $exceptions): void {
|
|||
});
|
||||
|
||||
$exceptions->shouldRenderJsonWhen(
|
||||
fn (Request $request) => $request->is('api/*'),
|
||||
fn (Request $request) => $request->is('api/*', 'api'),
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue