learn more page
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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() );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user