PromoAdmin
This commit is contained in:
@@ -41,8 +41,8 @@ $routes->post('/en/promo/api/v1/start', 'Promo::promoStart');
|
||||
$routes->post('/en/promo/api/v1/tasks', 'Promo::promoTask');
|
||||
|
||||
$routes->post('/en/promoadmin/api/v1/auth', 'Promo::promoAuth');
|
||||
$routes->get('/en/promoadmin/api/v1/list', 'Promo::promoList');
|
||||
$routes->post('/en/promoadmin/api/v1/list', 'Promo::promoAddRef');
|
||||
$routes->get('/en/promoadmin/api/v1/list', 'PromoAdmin::promoList');
|
||||
$routes->post('/en/promoadmin/api/v1/list', 'PromoAdmin::promoAddRef');
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -141,10 +141,22 @@ class Promo extends BaseController
|
||||
return $this->respond( $this->summaryReturnData($in,$out), 200);
|
||||
}
|
||||
public function promoList(){
|
||||
log_message('critical', "***** ***** Promo::promoList ****" );
|
||||
// $in = $this->request->getPostGet();
|
||||
$raw_json = file_get_contents('php://input');
|
||||
$in = json_decode($raw_json, true);
|
||||
$out = [];
|
||||
|
||||
return $this->respond( $this->summaryReturnData($in,$out), 200);
|
||||
}
|
||||
public function promoAddRef(){
|
||||
log_message('critical', "***** ***** Promo::promoAddRef ****" );
|
||||
// $in = $this->request->getPostGet();
|
||||
$raw_json = file_get_contents('php://input');
|
||||
$in = json_decode($raw_json, true);
|
||||
$out = [];
|
||||
|
||||
return $this->respond( $this->summaryReturnData($in,$out), 200);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace App\Controllers;
|
||||
|
||||
use CodeIgniter\API\ResponseTrait;
|
||||
|
||||
class PromoAdmin extends BaseController
|
||||
{
|
||||
|
||||
public function promoList(){
|
||||
log_message('critical', "***** ***** PromoAdmin::promoList ****" );
|
||||
// $in = $this->request->getPostGet();
|
||||
$raw_json = file_get_contents('php://input');
|
||||
$in = json_decode($raw_json, true);
|
||||
$out = [];
|
||||
|
||||
return $this->respond( $this->summaryReturnData($in,$out), 200);
|
||||
}
|
||||
public function promoAddRef(){
|
||||
log_message('critical', "***** ***** PromoAdmin::promoAddRef ****" );
|
||||
// $in = $this->request->getPostGet();
|
||||
$raw_json = file_get_contents('php://input');
|
||||
$in = json_decode($raw_json, true);
|
||||
$out = [];
|
||||
|
||||
return $this->respond( $this->summaryReturnData($in,$out), 200);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user