diff --git a/www-api/app/Config/Routes.php b/www-api/app/Config/Routes.php index 728ecf2d..72116f00 100644 --- a/www-api/app/Config/Routes.php +++ b/www-api/app/Config/Routes.php @@ -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'); diff --git a/www-api/app/Controllers/WrenchApi.php b/www-api/app/Controllers/WrenchApi.php index c56f5d7f..f6432bb9 100644 --- a/www-api/app/Controllers/WrenchApi.php +++ b/www-api/app/Controllers/WrenchApi.php @@ -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; diff --git a/www-api/public/svs/user/userve.php b/www-api/public/svs/user/userve.php index 64af51f3..ce2ec9f7 100755 --- a/www-api/public/svs/user/userve.php +++ b/www-api/public/svs/user/userve.php @@ -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;