Pending Job Manage
This commit is contained in:
@@ -94,12 +94,27 @@ class WrenchApi extends BaseController
|
||||
'familyadd' => ['POST'],
|
||||
'familyupdate' => ['POST'],
|
||||
'familymanage' => ['POST'],
|
||||
'pendingjobextend' => ['POST'],
|
||||
'pendingjobsendtome' => ['POST'],
|
||||
'pendingjobcancel' => ['POST'],
|
||||
];
|
||||
return $endpoints;
|
||||
}
|
||||
|
||||
private function prepareEndPointData($endpoint, $in, &$call_backend=true,&$local_out=[]){
|
||||
switch ($endpoint) {
|
||||
case 'pendingjobextend':
|
||||
$in["action"] = WRENCHBOARD_JOB_EXTEND_EXPIRE;
|
||||
break;
|
||||
|
||||
case 'pendingjobsendtome':
|
||||
$in["action"] = WRENCHBOARD_JOB_RESEND_MESSAGE;
|
||||
break;
|
||||
|
||||
case 'pendingjobcancel':
|
||||
$in["action"] = WRENCHBOARD_JOB_CANCEL_OFFER;
|
||||
break;
|
||||
|
||||
case 'familylist':
|
||||
$in["action"] = WRENCHBOARD_FAMILY_LIST;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user