fix phone dashboard
This commit is contained in:
@@ -8,7 +8,7 @@ class AppConstants {
|
||||
|
||||
// Production
|
||||
static const String productionApiUrl = 'https://api.rentaldrivego.ma/api/v1';
|
||||
static const String productionDashboardUrl = 'https://rentaldrivego.ma/dashboard';
|
||||
static const String productionDashboardUrl = 'https://rentaldrivego.ma';
|
||||
|
||||
// Development
|
||||
static const String devAndroidApiUrl = 'http://10.0.2.2:4000/api/v1';
|
||||
@@ -18,14 +18,12 @@ class AppConstants {
|
||||
|
||||
static String get baseUrl {
|
||||
if (apiBaseUrlOverride.isNotEmpty) return apiBaseUrlOverride;
|
||||
if (Platform.isAndroid) return devAndroidApiUrl;
|
||||
return devLocalApiUrl;
|
||||
return productionApiUrl;
|
||||
}
|
||||
|
||||
static String get dashboardBaseUrl {
|
||||
if (dashboardUrlOverride.isNotEmpty) return dashboardUrlOverride;
|
||||
if (Platform.isAndroid) return devAndroidDashboardUrl;
|
||||
return devLocalDashboardUrl;
|
||||
return productionDashboardUrl;
|
||||
}
|
||||
|
||||
static String resolveMediaUrl(String url) {
|
||||
|
||||
Reference in New Issue
Block a user