diff --git a/framework/core/src/Api/ApiServiceProvider.php b/framework/core/src/Api/ApiServiceProvider.php index 5d1e28b192..acd7a8b636 100644 --- a/framework/core/src/Api/ApiServiceProvider.php +++ b/framework/core/src/Api/ApiServiceProvider.php @@ -56,7 +56,7 @@ public function register(): void $this->container->singleton('flarum.api.middleware', function () { return [ HttpMiddleware\InjectActorReference::class, - // 'flarum.api.error_handler', + 'flarum.api.error_handler', HttpMiddleware\ParseJsonBody::class, Middleware\FakeHttpMethods::class, HttpMiddleware\StartSession::class,