Fix: https url

This commit is contained in:
2024-06-14 01:37:42 +03:00
parent 27da063c34
commit f5e1407281
4 changed files with 7 additions and 9 deletions

View File

@@ -12,8 +12,7 @@ void main() {
}
Future<String> getToken(String token, String clientId) async {
debugPrint(token);
var url = Uri.http('gymlink.freemyip.com:8080', 'api/auth/authorize_client');
var url = Uri.https('gymlink.freemyip.com', 'api/auth/authorize_client');
try {
var response = await http.post(url,
body: {'GymKey': token, 'id': clientId}); // Just testing token