shlink/module/Rest/config/error-handler.config.php

18 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',
],
],
],
];