Return correct headers

This commit is contained in:
James Cole
2025-01-25 04:48:51 +01:00
parent 6f63ddf5b0
commit 663202bfc6
16 changed files with 31 additions and 21 deletions

View File

@@ -41,6 +41,7 @@ use Illuminate\Http\JsonResponse;
class AccountController extends Controller
{
use AccountFilter;
protected array $accepts = ['application/json'];
/** @var array<int, string> */
private array $balanceTypes;
@@ -123,6 +124,6 @@ class AccountController extends Controller
}
);
return response()->json($return);
return response()->api($return);
}
}