Create management portal in Flutter #39
This commit is contained in:
parent
661f57d599
commit
865ed5f0c1
@ -49,7 +49,9 @@ class MountList with ChangeNotifier {
|
|||||||
Future<void> add(String type, String name) async {
|
Future<void> add(String type, String name) async {
|
||||||
await http.post(
|
await http.post(
|
||||||
Uri.parse(
|
Uri.parse(
|
||||||
Uri.encodeFull('${Uri.base.origin}/api/v1/mount?name=$name&type=$type'),
|
Uri.encodeFull(
|
||||||
|
'${Uri.base.origin}/api/v1/add_mount?name=$name&type=$type',
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user