return available drive letters on windows
This commit is contained in:
parent
10829fc9d9
commit
cd41e026ee
@ -106,9 +106,7 @@ class Mount with ChangeNotifier {
|
|||||||
final auth = await _auth.createAuth();
|
final auth = await _auth.createAuth();
|
||||||
final response = await http.get(
|
final response = await http.get(
|
||||||
Uri.parse(
|
Uri.parse(
|
||||||
Uri.encodeFull(
|
Uri.encodeFull('${getBaseUri()}/api/v1/locations?auth=$auth'),
|
||||||
'${getBaseUri()}/api/v1/mount_location?auth=$auth&name=$name&type=$type',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -121,6 +119,7 @@ class Mount with ChangeNotifier {
|
|||||||
return <String>[];
|
return <String>[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
debugPrint("response|$jsonDecode(response.body)");
|
||||||
return jsonDecode(response.body) as List<String>;
|
return jsonDecode(response.body) as List<String>;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
debugPrint('$e');
|
debugPrint('$e');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user