This commit is contained in:
CHIEFSOFT\ameye
2024-06-06 09:38:36 -04:00
parent 99801e83b2
commit 6c0f23fde0
2 changed files with 12 additions and 0 deletions
+2
View File
@@ -23,6 +23,8 @@ $routes->get('/digibko/v1/loan/rejected', 'BkoReports::rejectedApplication'
$routes->get('/digibko/v1/employers', 'BkoReports::employersList');
$routes->post('/digibko/v1/employer', 'BkoReports::employerAdd');
/*
* Processing the loan from back office
*/
+10
View File
@@ -130,4 +130,14 @@ public function employersList() :ResponseInterface {
return $this->respond($data, 200);
}
public function employerAdd():ResponseInterface{
$data = $this->request->getPost();
$insert_data = $data;
$result = $this-> insert_db('employers', $insert_data);
$result_data = [
'call_return' => '100',
'result' =>$result
];
return $this->respond($result_data, 200);
}
}