diff --git a/covas_mobile/lib/ItemMenu.dart b/covas_mobile/lib/ItemMenu.dart index 7e47257..a56bc47 100644 --- a/covas_mobile/lib/ItemMenu.dart +++ b/covas_mobile/lib/ItemMenu.dart @@ -66,7 +66,7 @@ class _ItemMenuState extends State with ShowErrorDialog { String former = ""; if (accessToken.isNotEmpty) { - var urlGet = Uri.parse("http://${globals.api}/events"); + var urlGet = Uri.parse("${globals.api}/events"); var responseGet = await http.get(urlGet, headers: {HttpHeaders.cookieHeader: 'access_token=${accessToken}'}); diff --git a/covas_mobile/lib/ListItemMenu.dart b/covas_mobile/lib/ListItemMenu.dart index aa60d75..419a385 100644 --- a/covas_mobile/lib/ListItemMenu.dart +++ b/covas_mobile/lib/ListItemMenu.dart @@ -46,7 +46,7 @@ class _MyHomePageState extends State { var accessToken = prefs.getString("access_token") ?? ""; final List body = []; if (accessToken.isNotEmpty) { - var url = Uri.parse("http://${globals.api}/events"); + var url = Uri.parse("${globals.api}/events"); final response = await http.get(url, headers: { "Content-Type": "application/json", HttpHeaders.cookieHeader: "access_token=${accessToken}" diff --git a/covas_mobile/lib/main.dart b/covas_mobile/lib/main.dart index 5366834..d236df9 100644 --- a/covas_mobile/lib/main.dart +++ b/covas_mobile/lib/main.dart @@ -35,7 +35,7 @@ class _LoginDemoState extends State with ShowErrorDialog { TextEditingController inputPseudo = TextEditingController(); TextEditingController inputPassword = TextEditingController(); Future _login(BuildContext context) async { - var url = Uri.parse("https://${globals.api}/token"); + var url = Uri.parse("${globals.api}/token"); var pseudo = inputPseudo.text; var password = inputPassword.text; print("get login"); diff --git a/covas_mobile/lib/variable/globals.dart b/covas_mobile/lib/variable/globals.dart index 30de4ad..f90fa4d 100644 --- a/covas_mobile/lib/variable/globals.dart +++ b/covas_mobile/lib/variable/globals.dart @@ -1 +1 @@ -String api = "backend.valczeryba.ovh"; +String api = "https://backend.valczeryba.ovh";