diff --git a/lib/networking.dart b/lib/networking.dart index 0812e27..29e7040 100644 --- a/lib/networking.dart +++ b/lib/networking.dart @@ -11,7 +11,7 @@ import 'Login.dart'; Future getToken( String user, String password, String otp, String devId) async { - var uri = Uri.http("localhost:3000", "/login"); + var uri = Uri.https("mein.cantorgymnasium.de", "/login"); String body = '{"user":"$user", "password": "$password", "otp": "$otp", "devid": "$devId"}'; print(uri); @@ -38,7 +38,7 @@ Future getToken( Future getUserInfo( String user, String password, String otp, String devId) async { - var uri = Uri.http("localhost:3000", "/api/userinfo"); + var uri = Uri.https("mein.cantorgymnasium.de", "/api/userinfo"); String body = '{"user":"$user", "password": "$password", "otp": "$otp", "devid": "$devId"}'; print(uri);