From c92346909482be832ae55a3f5a8cc07b394e1469 Mon Sep 17 00:00:00 2001 From: Sami Mazouz Date: Fri, 9 Sep 2022 23:14:12 +0100 Subject: [PATCH] fix: error handler inside api client makes evaluating errors difficult Signed-off-by: Sami Mazouz --- framework/core/src/Api/ApiServiceProvider.php | 1 + 1 file changed, 1 insertion(+) diff --git a/framework/core/src/Api/ApiServiceProvider.php b/framework/core/src/Api/ApiServiceProvider.php index 7d18e806b..55af3d20d 100644 --- a/framework/core/src/Api/ApiServiceProvider.php +++ b/framework/core/src/Api/ApiServiceProvider.php @@ -105,6 +105,7 @@ class ApiServiceProvider extends AbstractServiceProvider $this->container->singleton('flarum.api_client.exclude_middleware', function () { return [ + 'flarum.api.error_handler', HttpMiddleware\InjectActorReference::class, HttpMiddleware\ParseJsonBody::class, Middleware\FakeHttpMethods::class,