interest processing

This commit is contained in:
CHIEFSOFT\ameye
2023-06-16 15:26:00 -04:00
parent eb7102f262
commit ee27193bec
3 changed files with 9 additions and 0 deletions
+1
View File
@@ -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');
+4
View File
@@ -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;
+4
View File
@@ -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;