forked from eatvio/eatvio_app
feat: recipe like
This commit is contained in:
@@ -217,4 +217,24 @@ class FeedRepository {
|
||||
rethrow;
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> likeRecipe({
|
||||
required String slug,
|
||||
}) async {
|
||||
try {
|
||||
await feedService.likeRecipe(slug: slug);
|
||||
} catch (e) {
|
||||
rethrow;
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> unlikeRecipe({
|
||||
required String slug,
|
||||
}) async {
|
||||
try {
|
||||
await feedService.unlikeRecipe(slug: slug);
|
||||
} catch (e) {
|
||||
rethrow;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user