diff --git a/api/application/config/routes.php b/api/application/config/routes.php index 52f7e159..0199bf9c 100644 --- a/api/application/config/routes.php +++ b/api/application/config/routes.php @@ -193,6 +193,7 @@ $route['getAllPersonsName'] = 'PD_Controller/getAllPersonsName'; $route['getAssetsWithLoanFromBusiness'] = 'PD_Controller/getAssetsWithLoanFromBusiness'; $route['getListOfCities'] = 'PD_Controller/getListOfCities'; $route['savePDPhotos'] = 'PD_Controller/savePDPhotos'; +$route['getPDAddress'] = 'PD_Controller/getPDAddress'; // $route['savePDFormDetailsJSON'] = 'PD_Controller/savePDFormDetailsJSON'; // $route['getPDFormDetailsJSON'] = 'PD_Controller/getPDFormDetailsJSON'; diff --git a/api/application/controllers/PD_Controller.php b/api/application/controllers/PD_Controller.php index ba4029f4..e38cc384 100644 --- a/api/application/controllers/PD_Controller.php +++ b/api/application/controllers/PD_Controller.php @@ -4516,6 +4516,16 @@ class PD_Controller extends REST_Controller { } + public function getPDAddress_post() + { + $pdid = $this->post('pd_id'); + $address = $this->PD_Model->getPDAddress($pdid); + $data['dataStatus'] = true; + $data['status'] = REST_Controller::HTTP_OK; + $data['records'] = $address; + $this->response($data,REST_Controller::HTTP_OK); + + } public function getEndUseOfLoan_post() {