Fix: https url
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user