Fix data , upload routes
This commit is contained in:
@@ -186,7 +186,7 @@ long WrenchJobPostExtendTime(CVars in, CVars &out){
|
||||
if (!f.empty()) {
|
||||
CVars rec;
|
||||
map_to_cvars(f, rec);
|
||||
pgsql_query("UPDATE members_jobs_offer SET expire = now() + '%lu days()' WHERE offer_code = '%s' AND member_id=%lu AND status =1",rec["offer_id"].Long(), in["offer_code"].c_str(),member_id);
|
||||
pgsql_query("UPDATE members_jobs_offer SET expire = now() + '%lu days()' WHERE offer_code = '%s' AND member_id=%lu AND status =1",extend_days, in["offer_code"].c_str(),member_id);
|
||||
ret = PHP_UPDATED_OK;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -133,6 +133,8 @@ $routes->post('/en/wrench/api/v1/pendingjobcancel', 'WrenchApi::apigate');
|
||||
|
||||
$routes->post('/en/wrench/api/v1/assigntask', 'WrenchApi::apigate');
|
||||
|
||||
$routes->post('/en/wrench/api/v1/uploads', 'WrenchApi::apigate');
|
||||
|
||||
|
||||
//$routes->post('/en/wrench/api/v1/blogdata', 'WrenchBlog::apigate');
|
||||
//$routes->post('/en/wrench/api/v1/blogitem', 'WrenchBlog::apigate');
|
||||
|
||||
@@ -101,6 +101,8 @@ class WrenchApi extends BaseController
|
||||
'pendingjobcancel' => ['POST'],
|
||||
'assigntask' => ['POST'],
|
||||
'resources'=> ['POST'],
|
||||
'uploads'=> ['POST'],
|
||||
|
||||
];
|
||||
return $endpoints;
|
||||
}
|
||||
|
||||
@@ -80,6 +80,7 @@ $endpoints = array(
|
||||
'pendingjobcancel' => array('POST'),
|
||||
'assigntask' => array('POST'),
|
||||
'resources'=> array('POST'),
|
||||
'uploads'=> array('POST'),
|
||||
);
|
||||
|
||||
$call_backend = true; // sometimes we need to overwite the call to the extenstion API
|
||||
|
||||
Reference in New Issue
Block a user