interest processing
This commit is contained in:
@@ -145,6 +145,7 @@ $routes->post('/en/wrench/api/v1/activetaskstatus', 'WrenchApi::apigate');
|
||||
//$routes->post('/en/wrench/api/v1/blogitem', 'WrenchBlog::apigate');
|
||||
|
||||
$routes->post('/en/wrench/api/v1/offersinterestlist', 'WrenchApi::apigate');
|
||||
$routes->post('/en/wrench/api/v1/offersinterestproc', 'WrenchApi::apigate');
|
||||
|
||||
$routes->post('/en/wrench/api/v1/resources', 'WrenchResources::website');
|
||||
$routes->get('/en/wrench/api/v1/blogdata/', 'WrenchBlog::website');
|
||||
|
||||
@@ -107,12 +107,16 @@ class WrenchApi extends BaseController
|
||||
'activejobstatus'=> ['POST'],
|
||||
'activetaskstatus'=> ['POST'],
|
||||
'offersinterestlist' => ['POST'],
|
||||
'offersinterestproc' => ['POST'],
|
||||
];
|
||||
return $endpoints;
|
||||
}
|
||||
|
||||
private function prepareEndPointData($endpoint, $in, &$call_backend=true,&$local_out=[]){
|
||||
switch ($endpoint) {
|
||||
case 'offersinterestproc':
|
||||
$in["action"] = WRENCHBOARD_JOB_PROC_INTEREST;
|
||||
break;
|
||||
case 'offersinterestlist':
|
||||
$in["action"] = WRENCHBOARD_JOB_OFFER_INTLIST;
|
||||
break;
|
||||
|
||||
@@ -88,6 +88,7 @@ $endpoints = array(
|
||||
'activetaskstatus'=> array('POST'),
|
||||
'offersinterestlist' => array('POST'),
|
||||
'faq' => array('POST'),
|
||||
'offersinterestproc' => array('POST'),
|
||||
);
|
||||
|
||||
$call_backend = true; // sometimes we need to overwite the call to the extenstion API
|
||||
@@ -179,6 +180,9 @@ if ($_SERVER["REQUEST_METHOD"] == "GET") {
|
||||
}
|
||||
$in["loc"] = $_SERVER["REMOTE_ADDR"];
|
||||
switch ($endpoint) {
|
||||
case 'offersinterestproc':
|
||||
$in["action"] = WRENCHBOARD_JOB_PROC_INTEREST;
|
||||
break;
|
||||
case 'faq':
|
||||
$local_out = faqData();
|
||||
$call_backend = false;
|
||||
|
||||
Reference in New Issue
Block a user