Use new error handling middleware for API

pull/9/head
Franz Liedke 2015-06-20 19:46:20 +02:00
parent 56dd92c61a
commit fe2752ae73
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ $api->pipe($app->make('Flarum\Api\Middleware\ReadJsonParameters'));
$api->pipe($app->make('Flarum\Api\Middleware\LoginWithHeader'));
$api->pipe('/api', $app->make('Flarum\Http\RouterMiddleware', ['routes' => $app->make('flarum.api.routes')]));
$api->pipe(new \Franzl\Middleware\Whoops\Middleware());
$api->pipe(new \Flarum\Api\Middleware\JsonApiErrors());
$server = Server::createServer(
$api,