loggers
This commit is contained in:
@@ -116,7 +116,7 @@ class WrenchWallet extends BaseController
|
|||||||
public function getWallet(){
|
public function getWallet(){
|
||||||
log_message('critical', "0001");
|
log_message('critical', "0001");
|
||||||
header('Access-Control-Allow-Origin: *');
|
header('Access-Control-Allow-Origin: *');
|
||||||
log_message('critical', "WrenchWallet Path GATE 001");
|
log_message('critical', "WrenchWallet Path getWallet 001");
|
||||||
$call_backend = true;
|
$call_backend = true;
|
||||||
|
|
||||||
header("Access-Control-Allow-Headers: Origin, X-API-KEY, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method, Access-Control-Allow-Headers, Authorization, observe, enctype, Content-Length, X-Csrf-Token");
|
header("Access-Control-Allow-Headers: Origin, X-API-KEY, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method, Access-Control-Allow-Headers, Authorization, observe, enctype, Content-Length, X-Csrf-Token");
|
||||||
@@ -131,12 +131,8 @@ class WrenchWallet extends BaseController
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ($method == "OPTIONS") {
|
|
||||||
header("HTTP/1.1 200 OK CORS");
|
log_message('critical', "WrenchWallet Path getWallet 003");
|
||||||
log_message('critical', " WrenchJobs()-> OPTIONS DIE*****" );
|
|
||||||
die();
|
|
||||||
}
|
|
||||||
log_message('critical', "WrenchWallet Path GATE 003");
|
|
||||||
//$request = service('request');
|
//$request = service('request');
|
||||||
// what is the endpoint
|
// what is the endpoint
|
||||||
$uri = urldecode(current_url(true));
|
$uri = urldecode(current_url(true));
|
||||||
@@ -178,7 +174,7 @@ class WrenchWallet extends BaseController
|
|||||||
|
|
||||||
|
|
||||||
$in["action"] = 'getwallets'; //WRENCHBOARD_ACCOUNT_JOBLIST;
|
$in["action"] = 'getwallets'; //WRENCHBOARD_ACCOUNT_JOBLIST;
|
||||||
|
log_message('critical', "before APIN call 0001");
|
||||||
if ( $call_backend == true && $in["action"] !='' ){
|
if ( $call_backend == true && $in["action"] !='' ){
|
||||||
$local_url = "http://".$micro_service_net1.":3037/getwallets";
|
$local_url = "http://".$micro_service_net1.":3037/getwallets";
|
||||||
$out = $this->APIcall('GET', $local_url, $in);
|
$out = $this->APIcall('GET', $local_url, $in);
|
||||||
|
|||||||
Reference in New Issue
Block a user