Pending Job Manage
This commit is contained in:
@@ -73,6 +73,9 @@ $endpoints = array(
|
||||
'familyadd' => array('POST'),
|
||||
'familyupdate' => array('POST'),
|
||||
'familymanage' => array('POST'),
|
||||
'pendingjobextend' => array('POST'),
|
||||
'pendingjobsendtome' => array('POST'),
|
||||
'pendingjobcancel' => array('POST'),
|
||||
);
|
||||
|
||||
$call_backend = true; // sometimes we need to overwite the call to the extenstion API
|
||||
@@ -135,6 +138,18 @@ if ($_SERVER["REQUEST_METHOD"] == "GET") {
|
||||
}
|
||||
$in["loc"] = $_SERVER["REMOTE_ADDR"];
|
||||
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