EMPLOYMENT PAGE
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace App\Controllers;
|
||||
|
||||
use CodeIgniter\HTTP\ResponseInterface;
|
||||
|
||||
class Employment extends BaseController
|
||||
{
|
||||
public function login() :ResponseInterface
|
||||
{
|
||||
$row =[];
|
||||
$data = [
|
||||
'call_return' => '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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user