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 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');