Set public url

This commit is contained in:
Denys Konovalov 2021-08-31 17:49:57 +02:00
parent c7257dd1b2
commit 877821d3a3

@ -11,7 +11,7 @@ import 'Login.dart';
Future<String> 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<String> getToken(
Future<String> 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);