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