Skip to content

Commit

Permalink
backend-url-change
Browse files Browse the repository at this point in the history
  • Loading branch information
MonalikaPatnaik committed Dec 28, 2023
1 parent dcb24e4 commit ffe99e6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/src/components/ShopCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const ShopCard = (props) => {
}
setWish(true);
setTimeout(async()=>{
const res=await fetch(`http://localhost:4000/addWish?email=${user.email}`, {
const res=await fetch(`https://sheearns.onrender.com/addWish?email=${user.email}`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body:JSON.stringify({shops:[{name:title,shopid:id,category:category,image:imgurl,description:descr}]})
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Wishcard.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const Wishcard = ({img,name,description,id}) => {
const navigate=useNavigate();
const {user}=useAuth0();
const remove=async()=>{
const res = await fetch(`http://localhost:4000/deleteWish?email=${user.email}&shopid=${id}`, {
const res = await fetch(`https://sheearns.onrender.com/deleteWish?email=${user.email}&shopid=${id}`, {
method: "PUT",
headers: { "Content-Type": "application/json" },

Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/Wishlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Wishlist = () => {
const [show,setShow]=useState(true);
useEffect(() => {

fetch(`http://localhost:4000/getWishAll?email=${user.email}`)
fetch(`https://sheearns.onrender.com/getWishAll?email=${user.email}`)
.then((res) => res.json())
.then((data) => {
console.log(data);
Expand Down

0 comments on commit ffe99e6

Please sign in to comment.