fix page
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user