Files
BE_IBL/application/controllers/Test_rpt.php
2026-04-15 15:24:53 +07:00

19 lines
469 B
PHP

<?php
class Test_rpt extends MY_Controller {
function __construct() {
parent::__construct();
}
function index() {
$headers = getallheaders();
$token = "";
if (in_array('Authorization', array_keys($headers))) {
$token = $headers['Authorization'];
}
$data = file_get_contents("php://input");
$resp = json_decode($data,true);
$v_data = print_r($resp,true);
echo "Helo $token \n $v_data";
}
}