mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-31 04:44:33 +01:00
Remove getList implementation
This commit is contained in:
@@ -15,15 +15,6 @@ class RestApiUtility {
|
||||
}
|
||||
}
|
||||
|
||||
Future<List<dynamic>> getList(String endpoint) async {
|
||||
final response = await http.get(Uri.parse('$baseUrl/$endpoint'));
|
||||
if (response.statusCode == 200) {
|
||||
return json.decode(response.body);
|
||||
} else {
|
||||
throw Exception('Failed to load data');
|
||||
}
|
||||
}
|
||||
|
||||
Future<Map<String, dynamic>> post(
|
||||
String endpoint, Map<String, dynamic> payload) async {
|
||||
final response = await http.post(
|
||||
|
||||
Reference in New Issue
Block a user