This commit is contained in:
CHIEFSOFT\ameye
2024-11-16 14:17:46 -05:00
parent e8d254ae2e
commit 01398f05b8
4 changed files with 79 additions and 264 deletions
+6 -3
View File
@@ -54,6 +54,12 @@ abstract class BaseController extends Controller
// Preload any models, libraries, etc, here.
// E.g.: $this->session = \Config\Services::session();
$httpHost = $_SERVER['HTTP_HOST'];
if ( $httpHost == 'https://promo.wrenchboard.com' || $httpHost == 'promo.wrenchboard.com' ){
$_SERVER['CI_ENV'] = 'production';
$_SERVER['CI_ENVIRONMENT'] = 'production';
}
}
public function APIcall($method, $url, $data) {
@@ -125,7 +131,4 @@ abstract class BaseController extends Controller
return API_ENDPOINT."/en/promoadmin/api/v1/";
}
}
//$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');
}