mirror of
https://github.com/shlinkio/shlink.git
synced 2025-01-18 17:33:51 +03:00
19 lines
402 B
PHP
19 lines
402 B
PHP
|
<?php
|
||
|
use Shlinkio\Shlink\Rest\Expressive\JsonErrorHandler;
|
||
|
|
||
|
return [
|
||
|
|
||
|
'error_handler' => [
|
||
|
'plugins' => [
|
||
|
'invokables' => [
|
||
|
'application/json' => JsonErrorHandler::class,
|
||
|
],
|
||
|
'aliases' => [
|
||
|
'application/x-json' => 'application/json',
|
||
|
'text/json' => 'application/json',
|
||
|
],
|
||
|
],
|
||
|
],
|
||
|
|
||
|
];
|