FIX_INTERNAL_API_CALL_HEADERS

This commit is contained in:
velz 2025-12-15 15:18:52 +05:30
parent 284714fc7e
commit 5ca59ab1a7

View File

@ -4408,7 +4408,8 @@ class EmployeeRestController extends AdminController
{
$client = \Config\Services::curlrequest();
$url = env('PRE_ENROLLMENT_BASEURL') . $endPoint;
$response = $client->post($url, ['json' => $postData, 'http_errors' => false]);
$headers = [ 'App-Signature' => getenv('APP_SIGNATURE') ];
$response = $client->post($url, ['json' => $postData,'headers' => $headers,'http_errors' => false]);
// return json_decode($response->getBody(), true);
return $response->getBody();
}