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,