mirror of
https://github.com/flarum/core.git
synced 2025-10-12 15:34:26 +02:00
@@ -37,11 +37,8 @@ class Server extends AbstractServer
|
||||
$pipe->pipe($adminPath, $app->make('Flarum\Admin\Middleware\RequireAdministrateAbility'));
|
||||
$pipe->pipe($adminPath, $app->make('Flarum\Http\Middleware\DispatchRoute', compact('routes')));
|
||||
|
||||
if ($app->inDebugMode()) {
|
||||
$pipe->pipe(new WhoopsMiddleware);
|
||||
} else {
|
||||
$pipe->pipe(new HandleErrors(__DIR__.'/../../error'));
|
||||
}
|
||||
$pipe->pipe(new HandleErrors(__DIR__.'/../../error', $app->inDebugMode()));
|
||||
|
||||
}
|
||||
|
||||
return $pipe;
|
||||
|
Reference in New Issue
Block a user