• 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
app Loading commit data...
bootstrap Loading commit data...
config Loading commit data...
database Loading commit data...
public Loading commit data...
resources Loading commit data...
storage Loading commit data...
tests Loading commit data...
.env.example Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
artisan Loading commit data...
composer.json Loading commit data...
gulpfile.js Loading commit data...
package.json Loading commit data...
phpunit.xml Loading commit data...
readme.md Loading commit data...
server.php Loading commit data...