Assign task
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user