mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:41:49 +08:00
fix: error handler inside api client makes evaluating errors difficult
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
This commit is contained in:
parent
8aec252452
commit
c923469094
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user