Admin end point
This commit is contained in:
@@ -115,4 +115,17 @@ abstract class BaseController extends Controller
|
||||
return API_ENDPOINT."/en/promo/api/v1/";
|
||||
}
|
||||
}
|
||||
|
||||
public function wrenchAdminApiServer():string{
|
||||
if ( $_SERVER['CI_ENVIRONMENT'] === 'production'){
|
||||
return "https://apigate.orion.g1.wrenchboard.com"."/en/promoadmin/api/v1/";
|
||||
}
|
||||
else
|
||||
{
|
||||
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