Faq Data
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user