mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04: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