employer
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user