浏览代码

Merge remote-tracking branch 'origin/master'

vishnukvmd 4 年之前
父节点
当前提交
899ab66d00
共有 1 个文件被更改,包括 2 次插入5 次删除
  1. 2 5
      lib/core/configuration.dart

+ 2 - 5
lib/core/configuration.dart

@@ -29,7 +29,7 @@ class Configuration {
   Configuration._privateConstructor();
 
   static final Configuration instance = Configuration._privateConstructor();
-
+  static const endpoint = String.fromEnvironment("endpoint", defaultValue: "https://api.ente.io");
   static const emailKey = "email";
   static const foldersToBackUpKey = "folders_to_back_up";
   static const keyAttributesKey = "key_attributes";
@@ -268,10 +268,7 @@ class Configuration {
   }
 
   String getHttpEndpoint() {
-    // if (kDebugMode) {
-    //   return "http://192.168.1.123:8080";
-    // }
-    return "https://api.ente.io";
+    return endpoint;
   }
 
   String getToken() {