MIF_E31222691/app/Http
Dries Vints 6f3aa7a4c5
Don't redirect for api calls
When calling api routes the Authenticate middleware attempts to redirect you to the login page. If you expect JSON back or don't have auth routes then you don't want this to happen. By re-using the logic from Laravel's exception handler on which format to output we can also determine wether to redirect the user to the login page or give them a JSON error response.
2018-10-12 15:40:15 +02:00
..
Controllers Fix 'resent' ambiguity 2018-09-16 17:32:31 +02:00
Middleware Don't redirect for api calls 2018-10-12 15:40:15 +02:00
Kernel.php wip 2018-09-08 11:06:07 -05:00