Assign task

This commit is contained in:
CHIEFSOFT\ameye
2023-05-25 21:59:06 -04:00
parent 9e60c746e3
commit d8d3619811
7 changed files with 29 additions and 3 deletions
+5
View File
@@ -76,6 +76,7 @@ $endpoints = array(
'pendingjobextend' => array('POST'),
'pendingjobsendtome' => array('POST'),
'pendingjobcancel' => array('POST'),
'assigntask' => array('POST'),
);
$call_backend = true; // sometimes we need to overwite the call to the extenstion API
@@ -138,6 +139,10 @@ if ($_SERVER["REQUEST_METHOD"] == "GET") {
}
$in["loc"] = $_SERVER["REMOTE_ADDR"];
switch ($endpoint) {
case 'assigntask':
$in["action"] = WRENCHBOARD_JOB_OFFER_SYSTEM;
break;
case 'pendingjobextend':
$in["action"] = WRENCHBOARD_JOB_EXTEND_EXPIRE;
break;