Environment handling
This commit is contained in:
@@ -32,3 +32,5 @@ defined('SHOW_DEBUG_BACKTRACE') || define('SHOW_DEBUG_BACKTRACE', true);
|
||||
| items. It can always be used within your own application too.
|
||||
*/
|
||||
defined('CI_DEBUG') || define('CI_DEBUG', true);
|
||||
|
||||
define ('API_ENDPOINT',"https://apigate.lotus.g1.wrenchboard.com");
|
||||
|
||||
@@ -23,3 +23,5 @@ ini_set('display_errors', '0');
|
||||
| release of the framework.
|
||||
*/
|
||||
defined('CI_DEBUG') || define('CI_DEBUG', false);
|
||||
|
||||
define ('API_ENDPOINT',"https://apigate.orion.g1.wrenchboard.com");
|
||||
|
||||
@@ -36,3 +36,5 @@ defined('SHOW_DEBUG_BACKTRACE') || define('SHOW_DEBUG_BACKTRACE', true);
|
||||
| release of the framework.
|
||||
*/
|
||||
defined('CI_DEBUG') || define('CI_DEBUG', true);
|
||||
|
||||
define ('API_ENDPOINT',"https://apigate.lotus.g1.wrenchboard.com");
|
||||
|
||||
@@ -104,6 +104,6 @@ abstract class BaseController extends Controller
|
||||
}
|
||||
|
||||
public function wrenchApiServer():string{
|
||||
return getenv("API_ENDPOINT")."/en/promo/api/v1/";
|
||||
return API_ENDPOINT."/en/promo/api/v1/";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user