interest list
This commit is contained in:
@@ -237,6 +237,7 @@ define('WRENCHBOARD_JOB_DELETE_GROUPMEMBER',13017);
|
||||
define('WRENCHBOARD_JOB_CREATE_GROUP', 13020);
|
||||
define('WRENCHBOARD_JOB_DELETE_GROUP',13023);
|
||||
|
||||
define('WRENCHBOARD_JOB_OFFER_INTLIST', 13024); // offers interest list
|
||||
define('WRENCHBOARD_JOB_OFFER_SYSTEM', 13025);
|
||||
define('WRENCHBOARD_JOB_OFFER_FAMILY', 13029);
|
||||
define('WRENCHBOARD_JOB_OFFER_INDVI',13030);
|
||||
|
||||
@@ -144,6 +144,7 @@ $routes->post('/en/wrench/api/v1/activetaskstatus', 'WrenchApi::apigate');
|
||||
//$routes->post('/en/wrench/api/v1/blogdata', 'WrenchBlog::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/resources', 'WrenchResources::website');
|
||||
$routes->get('/en/wrench/api/v1/blogdata/', 'WrenchBlog::website');
|
||||
|
||||
@@ -106,12 +106,16 @@ class WrenchApi extends BaseController
|
||||
'marketinterest'=> ['POST'],
|
||||
'activejobstatus'=> ['POST'],
|
||||
'activetaskstatus'=> ['POST'],
|
||||
'offersinterestlist' => ['POST'],
|
||||
];
|
||||
return $endpoints;
|
||||
}
|
||||
|
||||
private function prepareEndPointData($endpoint, $in, &$call_backend=true,&$local_out=[]){
|
||||
switch ($endpoint) {
|
||||
case 'offersinterestlist':
|
||||
$in["action"] = WRENCHBOARD_JOB_OFFER_INTLIST;
|
||||
break;
|
||||
case 'activejobstatus':
|
||||
case 'activetaskstatus':
|
||||
$in = $this->processJobStatus($in);
|
||||
|
||||
@@ -146,6 +146,7 @@ define('WRENCHBOARD_JOB_DELETE_GROUPMEMBER',13017);
|
||||
define('WRENCHBOARD_JOB_CREATE_GROUP', 13020);
|
||||
define('WRENCHBOARD_JOB_DELETE_GROUP',13023);
|
||||
|
||||
define('WRENCHBOARD_JOB_OFFER_INTLIST', 13024); // offers interest list
|
||||
define('WRENCHBOARD_JOB_OFFER_SYSTEM', 13025);
|
||||
define('WRENCHBOARD_JOB_OFFER_FAMILY', 13029);
|
||||
define('WRENCHBOARD_JOB_OFFER_INDVI',13030);
|
||||
|
||||
@@ -86,6 +86,7 @@ $endpoints = array(
|
||||
'marketinterest'=> array('POST'),
|
||||
'activejobstatus'=> array('POST'),
|
||||
'activetaskstatus'=> array('POST'),
|
||||
'offersinterestlist' => array('POST'),
|
||||
);
|
||||
|
||||
$call_backend = true; // sometimes we need to overwite the call to the extenstion API
|
||||
@@ -177,6 +178,9 @@ if ($_SERVER["REQUEST_METHOD"] == "GET") {
|
||||
}
|
||||
$in["loc"] = $_SERVER["REMOTE_ADDR"];
|
||||
switch ($endpoint) {
|
||||
case 'offersinterestlist':
|
||||
$in["action"] = WRENCHBOARD_JOB_OFFER_INTLIST;
|
||||
break;
|
||||
case 'activejobstatus':
|
||||
case 'activetaskstatus':
|
||||
$in = processJobStatus($in);
|
||||
|
||||
Reference in New Issue
Block a user