This commit is contained in:
DESKTOP-GBA0BK8\Admin
2023-04-09 18:24:23 -04:00
parent dcb016d180
commit c1a9249426
2 changed files with 53 additions and 4 deletions
+4 -4
View File
@@ -559,7 +559,7 @@ variations from the norm, and in addition other reproductive organ issue
log_message('critical', "Enpoint-> ".$endpoint );
$endpoints = [
'faq' => ['get'],
'faq' => ['GET'],
'blogdata' => ['GET'],
'contact' => ['POST']
];
@@ -579,16 +579,16 @@ variations from the norm, and in addition other reproductive organ issue
$raw_array = json_decode($raw_json, true);
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
log_message('critical', "Enpoint LOC2 HERE -> ".$endpoint );
$get_param = $_GET['reqData'] ?? null;
$raw_array = json_decode($get_param, true);
$raw_array = ($get_param!=null) ? json_decode($get_param, true):[];
}
// $raw_array['fff'] = json_decode($this->request->getJSON(), true);
log_message('critical', "Enpoint LOC2-> ".$endpoint );
switch ($endpoint) {
case 'faq':
//$res1 = $this->dummyData($raw_array);
$res1 = $this->apiData();
$res1 = (new \App\Models\faqData())->getSiteFaq([]);
break;
case 'blogdata':
// $res = $this->dummyData($raw_array);