diff --git a/www-api/app/Config/RoutesV1.php b/www-api/app/Config/RoutesV1.php index 0784cb8d..6c33b7a2 100644 --- a/www-api/app/Config/RoutesV1.php +++ b/www-api/app/Config/RoutesV1.php @@ -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'); diff --git a/www-api/app/Controllers/WrenchFaq.php b/www-api/app/Controllers/WrenchFaq.php index c639723b..f7ea0c09 100644 --- a/www-api/app/Controllers/WrenchFaq.php +++ b/www-api/app/Controllers/WrenchFaq.php @@ -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 = "