James Cole 2025-02-01 12:01:50 +01:00
parent 705b9bf0f2
commit f7b14b01bc
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80
2 changed files with 3 additions and 2 deletions

View File

@ -41,7 +41,8 @@ use Illuminate\Http\JsonResponse;
class AccountController extends Controller
{
use AccountFilter;
protected array $accepts = ['application/json'];
// this array only exists to test if the constructor will use it properly.
protected array $accepts = ['application/json', 'application/vnd.api+json'];
/** @var array<int, string> */
private array $balanceTypes;

View File

@ -67,7 +67,7 @@ abstract class Controller extends BaseController
protected array $allowedSort;
protected ParameterBag $parameters;
protected bool $convertToNative = false;
protected array $accepts = ['application/json'];
protected array $accepts = ['application/json','application/vnd.api+json'];
protected TransactionCurrency $nativeCurrency;
/**