Don't use whoops for API errors

pull/11/head
Toby Zerner 2015-09-14 16:19:20 +09:30
parent 7739217b39
commit 79a7f8d047
1 changed files with 1 additions and 5 deletions

View File

@ -28,11 +28,7 @@ $router = $app->make('Flarum\Http\RouterMiddleware', ['routes' => $app->make('fl
$api->pipe($apiPath, $router);
if (Core::inDebugMode()) {
$api->pipe(new WhoopsMiddleware());
} else {
$api->pipe(new JsonApiErrors());
}
$api->pipe(new JsonApiErrors());
$server = Server::createServer(
$api,