return available drive letters on windows

This commit is contained in:
Scott E. Graves 2025-03-24 11:35:36 -05:00
parent 10829fc9d9
commit cd41e026ee

View File

@ -106,9 +106,7 @@ class Mount with ChangeNotifier {
final auth = await _auth.createAuth();
final response = await http.get(
Uri.parse(
Uri.encodeFull(
'${getBaseUri()}/api/v1/mount_location?auth=$auth&name=$name&type=$type',
),
Uri.encodeFull('${getBaseUri()}/api/v1/locations?auth=$auth'),
),
);
@ -121,6 +119,7 @@ class Mount with ChangeNotifier {
return <String>[];
}
debugPrint("response|$jsonDecode(response.body)");
return jsonDecode(response.body) as List<String>;
} catch (e) {
debugPrint('$e');