From ac97a1102645ff63271813f04888dae9a7803192 Mon Sep 17 00:00:00 2001 From: velz Date: Wed, 27 Feb 2019 21:28:39 +0530 Subject: [PATCH] ADDRESS API --- api/application/config/routes.php | 1 + api/application/controllers/PD_Controller.php | 10 ++++++++++ 2 files changed, 11 insertions(+) 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() {