MIF_E31222691/app/Http/Middleware
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
..
Authenticate.php Don't redirect for api calls 2018-10-12 15:40:15 +02:00
CheckForMaintenanceMode.php Adding boilerplate maintenance middleware with excepted URIs array 2018-07-12 01:13:44 +02:00
EncryptCookies.php add trust proxy middleware 2017-03-29 10:05:16 -05:00
RedirectIfAuthenticated.php redirect to home if authed 2016-07-23 15:39:33 -05:00
TrimStrings.php add trust proxy middleware 2017-03-29 10:05:16 -05:00
TrustProxies.php Request::HEADER_X_FORWARDED_ALL is an int 2018-04-06 20:15:18 +02:00
VerifyCsrfToken.php formatting 2018-07-03 09:39:43 -05:00