diff --git a/app/Config/Routes.php b/app/Config/Routes.php index c08c763..0223014 100644 --- a/app/Config/Routes.php +++ b/app/Config/Routes.php @@ -5,4 +5,4 @@ use CodeIgniter\Router\RouteCollection; /** * @var RouteCollection $routes */ -$routes->get('/(:any)/(:any)', 'Home::promoIndex/$2/$1'); +$routes->get('/(:any)/(:any)', 'Home::promoIndex/$1/$2'); diff --git a/app/Controllers/Home.php b/app/Controllers/Home.php index 89c08ce..02c5578 100644 --- a/app/Controllers/Home.php +++ b/app/Controllers/Home.php @@ -10,17 +10,10 @@ class Home extends BaseController } public function promoIndex($promo,$promoOwner=''):string{ - // echo $promo; - // echo $promoOwner; - //http://10.204.5.100:9083/en/promo/api/v1/start - - // echo $backend_server = getenv("API_ENDPOINT"); - $in["promo"] = $promo; $in["promo_owner"] = $promoOwner; $out = $this->APIcall('POST', $this->wrenchApiServer(). 'start',$in); - $out["task"] = $this->APIcall('POST', $this->wrenchApiServer(). 'tasks',$in); -//var_dump($out); + $out["task"] = $this->APIcall('POST', $this->wrenchApiServer(). 'tasks',$in)["result_list"]; return view('welcome_message', $out); } } diff --git a/app/Views/welcome_message.php b/app/Views/welcome_message.php index c6c7c98..b5424bc 100644 --- a/app/Views/welcome_message.php +++ b/app/Views/welcome_message.php @@ -81,6 +81,25 @@
+ + + +
+
+
+
+
Naira
+
+ +
+ + +
@@ -91,13 +110,13 @@ - - -
- -
- - + + + + + + +