From 7a817f4989cd58128cbf683d6e1e727da1311dc1 Mon Sep 17 00:00:00 2001 From: hunteraraujo Date: Sat, 2 Sep 2023 15:22:08 -0700 Subject: [PATCH] Remove getList implementation --- lib/utils/rest_api_utility.dart | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/utils/rest_api_utility.dart b/lib/utils/rest_api_utility.dart index 47e355a0..70080cad 100644 --- a/lib/utils/rest_api_utility.dart +++ b/lib/utils/rest_api_utility.dart @@ -15,15 +15,6 @@ class RestApiUtility { } } - Future> 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> post( String endpoint, Map payload) async { final response = await http.post(