All API routes seem to work.

This commit is contained in:
James Cole
2018-03-04 08:22:32 +01:00
parent 2ab44fb33a
commit 7171e69715
7 changed files with 12 additions and 5 deletions

View File

@@ -77,8 +77,9 @@ class Handler extends ExceptionHandler
return response()->json(['message' => 'Unauthenticated', 'exception' => 'AuthenticationException'], 401);
}
if ($request->expectsJson()) {
$isDebug = env('APP_DEBUG', false);
$isDebug = config('app.debug', false);
if ($isDebug) {
return response()->json(
[