Pending Job Manage

This commit is contained in:
CHIEFSOFT\ameye
2023-05-19 12:35:33 -04:00
parent a2bbef8a1e
commit 331cc1a878
6 changed files with 42 additions and 1 deletions
+15
View File
@@ -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;