diff --git a/app/Config/Routes.php b/app/Config/Routes.php index 623d832..61575bd 100644 --- a/app/Config/Routes.php +++ b/app/Config/Routes.php @@ -53,3 +53,7 @@ $routes->post('/digiusers/v1/loan/apply', 'Loan::loanApply'); $routes->get('/digiusers/v1/loan/loanlist', 'Loan::loanlist'); +$routes->post('/employment/v1/auth', 'Employment::login'); +$routes->post('/employment/v1/otp', 'Employment::verifyOTP'); +$routes->get('/employment/v1/application', 'Employment::loadApplication'); + diff --git a/app/Controllers/Employment.php b/app/Controllers/Employment.php new file mode 100644 index 0000000..de80352 --- /dev/null +++ b/app/Controllers/Employment.php @@ -0,0 +1,41 @@ + '100', + 'verify_uid'=>'ce00b4c9-7a46-4176-aa5a-0f6d83740dbc', + 'dev_status'=>'FAKE_RESULT_NOT_IMPLIMENTED_FOR_REAL', + 'records' => $row + ]; + return $this->respond($data, 200); + } + + public function verifyOTP() :ResponseInterface + { + $row =[]; + $data = [ + 'call_return' => '100', + 'records' => $row + ]; + return $this->respond($data, 200); + } + + public function loadApplication() :ResponseInterface + { + $row =[]; + $data = [ + 'call_return' => '100', + 'records' => $row + ]; + return $this->respond($data, 200); + } + +} \ No newline at end of file