Open dguglielmi-git opened 1 year ago
We need to refactor the functions since we are calling the backend twice. Once for verifying the existence and another to run a task. We will use HTTP Status to understand what the backend is communicating and based on the status code we will proceed accordingly from the front-end.
Refactor the api calls that currently are using Strapi as a backend to start calling the new cloud function backend.
Api Calls:
/favorites?users_permissions_user=${idUser}
/favorites/${product[0]?._id}
/favorites?users_permissions_user=${idUser}&producto=${idProducto}
/favorites