diff --git a/app/Http/Responses/ApiErrorResponse.php b/app/Http/Responses/ApiErrorResponse.php index 4ad3845f..f78754c7 100644 --- a/app/Http/Responses/ApiErrorResponse.php +++ b/app/Http/Responses/ApiErrorResponse.php @@ -18,7 +18,7 @@ public function __construct( private $message, private ?Throwable $exception = null, private int $status = Response::HTTP_INTERNAL_SERVER_ERROR, - private array $headers = [] + private array $headers = ["Content-Type" => "application/json", "Accept" => "application/json"] ) {} /** diff --git a/app/Http/Responses/ApiSuccessResponse.php b/app/Http/Responses/ApiSuccessResponse.php index b8deb1ed..c2daec82 100644 --- a/app/Http/Responses/ApiSuccessResponse.php +++ b/app/Http/Responses/ApiSuccessResponse.php @@ -16,7 +16,7 @@ class ApiSuccessResponse implements Responsable public function __construct( private $data, private int $status = Response::HTTP_OK, - private array $headers = [] + private array $headers = ["Content-Type" => "application/json", "Accept" => "application/json"] ) {} /**