Add (favicon)
Update (route): Fix missing regex combo
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
|
||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
use Illuminate\Auth\AuthenticationException;
|
||||
use Illuminate\Http\Request;
|
||||
use Throwable;
|
||||
|
||||
class Handler extends ExceptionHandler
|
||||
@@ -32,17 +33,13 @@ public function register()
|
||||
|
||||
});
|
||||
|
||||
$this->renderable(function (NotFoundHttpException $e, $request) {
|
||||
|
||||
|
||||
if ($request->is('api/*')) {
|
||||
return response()->json([
|
||||
'status' => -1,
|
||||
], 404);
|
||||
} else {
|
||||
return redirect()->route('front.home');
|
||||
}
|
||||
});
|
||||
$this->renderable(function (NotFoundHttpException $e, $request) {
|
||||
if ($request->is('api/*')) {
|
||||
return response()->json([
|
||||
'status' => -1
|
||||
], 404);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user