refs Cambio servidor
This commit is contained in:
parent
8810e0139b
commit
17b6b6d577
|
@ -1,17 +1,21 @@
|
|||
package verdnatura.es.repartoverdnatura.UTILS;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import verdnatura.es.repartoverdnatura.INTERFACES.RestClient;
|
||||
|
||||
public class ApiUtils {
|
||||
private ApiUtils() {}
|
||||
private ApiUtils() {
|
||||
}
|
||||
|
||||
//public static final String BASE_URL = "http://10.1.4.42:9000/";
|
||||
//public static final String BASE_URL = "http://192.168.1.128:9000/";
|
||||
public static final String BASE_URL = "http://10.0.2.2:8080/";
|
||||
// public static final String BASE_URL = "http://192.168.1.128:9000/";
|
||||
//public static final String BASE_URL = "http://localhost:9000/";
|
||||
//public static final String BASE_URL = "http://10.0.2.2:8080/";
|
||||
|
||||
//public static final String BASE_URL = "https://test-app.verdnatura.es/";
|
||||
public static final String BASE_URL = "https://app.verdnatura.es/";
|
||||
|
||||
public static RestClient getAPIService() {
|
||||
return RetrofitClient.getClient(BASE_URL).create(RestClient.class);
|
||||
public static RestClient getAPIService(Context context) {
|
||||
return RetrofitClient.getClient(BASE_URL,context).create(RestClient.class);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,9 +6,9 @@ public class ApiUtilsSalix {
|
|||
private ApiUtilsSalix() {}
|
||||
|
||||
|
||||
//public static final String BASE_URL_SALIX = "https://salix.verdnatura.es/";
|
||||
public static final String BASE_URL_SALIX = "https://salix.verdnatura.es/";
|
||||
//public static final String BASE_URL_SALIX = "https://test-salix.verdnatura.es/";
|
||||
public static final String BASE_URL_SALIX = "http://10.0.2.2:3000/";
|
||||
//public static final String BASE_URL_SALIX = "http://localhost:3000/";
|
||||
public static RestClientSalix getAPIService() {
|
||||
return RetrofitClientSalix.getClient(BASE_URL_SALIX).create(RestClientSalix.class);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue