Skip to content

Commit

Permalink
mark deprecated endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
mgaoVA committed Jul 25, 2023
1 parent d495e5c commit 0981a36
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions LEAF_Nexus/api/controllers/EmployeeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,21 @@ public function post($act)
return print_r($args, true) . print_r($_GET, true);
});

// Deprecated
$this->index['POST']->register('employee/refresh/[text]/[digit]', function ($args) use ($employee, $national_db) {
if (!$national_db) {
$return_value = $employee->refresh($args[0]);
} else {
$return_value = array(
'status' => array(
'code' => 4,
'message' => 'You can\'t update the national orgchart'
)
);
}

return json_encode($return_value);
});

$this->index['POST']->register('employee/refresh/[text]', function ($args) use ($employee, $national_db) {
if (!$national_db) {
Expand Down

0 comments on commit 0981a36

Please sign in to comment.