Skip to content

Commit

Permalink
[Fix] #29
Browse files Browse the repository at this point in the history
issue fixing for  #29
  • Loading branch information
vrkansagara committed Mar 7, 2022
1 parent baac692 commit 8109d45
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Middleware/AfterMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ public function handle($request, Closure $next)
if (! $this->laraOutPress->isEnabled()) {
return $next($request);
}

if ($request->expectsJson()) {
return $next($request);
}

$config = $this->laraOutPress->getConfig();
$isDebug = $config['debug'];
Expand Down

0 comments on commit 8109d45

Please sign in to comment.