diff --git a/www-api/app/Config/Routes.php b/www-api/app/Config/Routes.php index aa4ec7ed..ecad3326 100644 --- a/www-api/app/Config/Routes.php +++ b/www-api/app/Config/Routes.php @@ -45,6 +45,8 @@ $routes->post('/en/promoadmin/api/v1/getlist', 'PromoAdmin::promoList'); $routes->post('/en/promoadmin/api/v1/list', 'PromoAdmin::promoAddRef'); $routes->post('/en/promoadmin/api/v1/getmember', 'PromoAdmin::promoGetMember'); $routes->post('/en/promoadmin/api/v1/assigntask', 'PromoAdmin::promoAssignTask'); +$routes->post('/en/promoadmin/api/v1/getactions', 'PromoAdmin::promoActionList'); + diff --git a/www-api/app/Controllers/PromoAdmin.php b/www-api/app/Controllers/PromoAdmin.php index 286ec0c2..1841be4d 100644 --- a/www-api/app/Controllers/PromoAdmin.php +++ b/www-api/app/Controllers/PromoAdmin.php @@ -18,6 +18,19 @@ class PromoAdmin extends BaseController return $this->respond( $this->summaryReturnData($in,$out), 200); } + + public function promoActionList(){ + log_message('critical', "***** ***** PromoAdmin::promoList ****" ); + + $raw_json = file_get_contents('php://input'); + $in = json_decode($raw_json, true); + $out = []; + $in["action"] = WRENCHBOARD_PROMOADMIN_GETLIST; + $ret = $this->wrenchboard->wrenchboard_api($in, $out); + + return $this->respond( $this->summaryReturnData($in,$out), 200); + } + public function promoAddRef(){ log_message('critical', "***** ***** PromoAdmin::promoAddRef ****" ); // $in = $this->request->getPostGet();