8000 Update nama endpoint getFilterCategories menjadi getFilterByCategorie… · CoderJava/Food-Recipe@67db050 · GitHub
[go: up one dir, main page]

Skip to content

Commit 67db050

Browse files
committed
Update nama endpoint getFilterCategories menjadi getFilterByCategories di food api provider
1 parent 997376a commit 67db050

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/src/resources/food_api_provider.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,14 @@ class FoodApiProvider {
4545
}
4646
}
4747

48-
Future<FilterCategories> getFilterCategories(String keyword) async {
48+
Future<FilterCategories> getFilterByCategories(String keyword) async {
4949
final response = await dio.get("$_baseUrl/api/json/v1/1/filter.php?c=$keyword");
5050
if (response.statusCode == 200) {
5151
return FilterCategories.fromJson(response.data);
5252
} else {
53-
throw Exception("Failed to get filter categories");
53+
throw Exception("Failed to get filter by categories");
5454
}
5555
}
56-
56+
57+
5758
}

0 commit comments

Comments
 (0)
0