This commit is contained in:
CHIEFSOFT\ameye
2023-06-24 08:04:06 -04:00
parent 28ce7f47a0
commit 24db2521b9
2 changed files with 8 additions and 2 deletions
+4 -1
View File
@@ -39,6 +39,9 @@ $routes->get('/', 'Home::index');
$routes->get('/en/wrench/api/v1/test','Home::test');
$routes->post('/en/wrench/api/v1/faq', 'WrenchFaq::apigate');
$routes->post('/en/wrench/api/v1/faqdata', 'WrenchFaq::apigate');
$routes->post('/en/wrench/api/v1/apigate', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/generics', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/createuser', 'WrenchApi::apigate');
@@ -159,7 +162,7 @@ $routes->post('/en/wrench/api/v1/askresources', 'WrenchResources::aigate');
$routes->get('/en/wrench/api/v1/blogdata/', 'WrenchBlog::website');
$routes->get('/en/wrench/api/v1/blogdata/(:any)', 'WrenchBlog::blogLimitedData/$1');
$routes->post('/en/wrench/api/v1/faq', 'WrenchFaq::apigate');
+4 -1
View File
@@ -3,7 +3,7 @@
namespace App\Controllers;
//use CodeIgniter\API\ResponseTrait;
//$routes->post('/en/wrench/api/v1/faq', 'WrenchFaq::apigate');
class WrenchFaq extends BaseController
{
@@ -12,6 +12,9 @@ class WrenchFaq extends BaseController
protected $db;
public $con_name = 'wrench_blog';
public function apigate(){
return $this->apiData();
}
private function apiData() {
/*
$this->db = \Config\Database::connect($this->con_name);