implemented api/addFavorite