Use Whoops middleware on frontend front controller, too

pull/9/head
Franz Liedke 10 years ago
parent f521f6640b
commit fd8d0b25c1

@ -23,6 +23,7 @@ $admin->pipe($app->make('Flarum\Http\RouterMiddleware', ['routes' => $app->make(
$flarum->pipe('/admin.php', $admin); $flarum->pipe('/admin.php', $admin);
$flarum->pipe('/index.php', $app->make('Flarum\Http\RouterMiddleware', ['routes' => $app->make('flarum.forum.routes')])); $flarum->pipe('/index.php', $app->make('Flarum\Http\RouterMiddleware', ['routes' => $app->make('flarum.forum.routes')]));
$flarum->pipe(new \Franzl\Middleware\Whoops\Middleware());
$server = Server::createServer( $server = Server::createServer(
$flarum, $flarum,

Loading…
Cancel
Save