• Jacob Bennett's avatar
    Don't return a login page to a JSON request · 5b3c5f3f
    Jacob Bennett authored
    Currently, any unauthorized API requests that pass through the `auth` middleware get a redirect to the login page. Adding the `wantsJson` flag to the conditional corrects this behavior.
    5b3c5f3f
Name
Last commit
Last update
..
Console Loading commit data...
Events Loading commit data...
Exceptions Loading commit data...
Http Loading commit data...
Jobs Loading commit data...
Listeners Loading commit data...
Policies Loading commit data...
Providers Loading commit data...
User.php Loading commit data...