import 'package:get/get.dart'; import '../bean/clash_config_generator.dart'; import '../common/LogHelper.dart'; import '../data/model/NodeMode.dart'; import '../network/api_service.dart'; class GlobalController extends GetxController { var nodeModes = [].obs; var isLoading = false.obs; var errorMsg = ''.obs; Future fetchNodes() async { nodeModes.value = await ApiService().getNode("/api/client/v4/nodes?vless=1"); } }