Remove getList implementation

This commit is contained in:
hunteraraujo
2023-09-02 15:22:08 -07:00
parent bda3b8b649
commit 7a817f4989

View File

@@ -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(