fix: error handler inside api client makes evaluating errors difficult

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
This commit is contained in:
Sami Mazouz 2022-09-09 23:14:12 +01:00
parent 8aec252452
commit c923469094
No known key found for this signature in database

View File

@ -105,6 +105,7 @@ class ApiServiceProvider extends AbstractServiceProvider
$this->container->singleton('flarum.api_client.exclude_middleware', function () { $this->container->singleton('flarum.api_client.exclude_middleware', function () {
return [ return [
'flarum.api.error_handler',
HttpMiddleware\InjectActorReference::class, HttpMiddleware\InjectActorReference::class,
HttpMiddleware\ParseJsonBody::class, HttpMiddleware\ParseJsonBody::class,
Middleware\FakeHttpMethods::class, Middleware\FakeHttpMethods::class,