learn more page

This commit is contained in:
CHIEFSOFT\ameye
2024-09-26 22:44:40 -04:00
parent cb7f83f506
commit 0d8b20e940
2 changed files with 29 additions and 0 deletions
+2
View File
@@ -19,6 +19,8 @@ $routes->post('/en/wrench/api/v1/authstart', 'WrenchOauth::apigate');
$routes->post('/en/wrench/api/v1/faq', 'WrenchFaq::apigate');
$routes->post('/en/wrench/api/v1/faqdata', 'WrenchFaq::apigate');
$routes->post('/en/wrench/api/v1/helpdata', 'WrenchFaq::helpgate');
$routes->post('/en/wrench/api/v1/learnmore', 'WrenchFaq::learnMoreUser');
$routes->post('/en/wrench/api/v1/apigate', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/generics', 'WrenchApi::apigate');
+27
View File
@@ -12,6 +12,33 @@ class WrenchFaq extends BaseController
protected $db;
public $con_name = 'wrench_blog';
public function learnMoreUser(){
$total = 4;
$data=[];
$raw_json = file_get_contents('php://input');
$in = json_decode($raw_json, true);
for ($i = 0; $i < $total; $i++) {
$msg='';
$msgS = "<div> Random gibberish text to use in web pages, site templates and in typography demos.
Get rid of Lorem Ipsum forever. A tool for web designers who want to save time. </div>";
$txL = rand(1,5);
for($ii=1; $ii<$txL; $ii++){
$msg = $msg.$msgS;
}
$data["result_list"][] = array(
"uid" => '0000-0000-0000-000'. $i,
"topic" => "Topic ".$i,
"contents" => $msg
);
}
return $this->summaryReturnData($in,$data); //json_encode( $final_out );
}
public function apigate(){
return json_encode( $this->apiData() );
}