Files
WrenchBoradWeb/www-api/app/Controllers/PromoAdmin.php
T
CHIEFSOFT\ameye f7515abe5a promoAddRef
2024-11-17 11:17:54 -05:00

30 lines
851 B
PHP

<?php
namespace App\Controllers;
use CodeIgniter\API\ResponseTrait;
class PromoAdmin extends BaseController
{
use ResponseTrait;
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);
}
}