Skip to content

Commit

Permalink
refactor toggle fav on frontend b00tc4mp#407
Browse files Browse the repository at this point in the history
  • Loading branch information
berlem committed Apr 21, 2024
1 parent eb2b0f6 commit 63a1d49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion staff/belen-ivars/project/app/src/logic/toggleFavRecipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function toggleFavRecipe(recipeId) {
let res

try {
res = await fetch(`${API_URL}/users/${recipeId}`, req)
res = await fetch(`${API_URL}/recipes/${recipeId}/favs`, req)
} catch (error) {
throw new SystemError(error.message)
}
Expand Down

0 comments on commit 63a1d49

Please sign in to comment.