From 815bc3eebecab1d7b50fef8a594507736227e9bd Mon Sep 17 00:00:00 2001 From: "jeremy.li" Date: Sun, 16 Oct 2022 13:27:41 -0700 Subject: [PATCH] removed localhost --- frontend/src/components/FriendSearch/FriendSearch.js | 2 +- frontend/src/components/FriendsDropdown/FriendsDropdown.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/FriendSearch/FriendSearch.js b/frontend/src/components/FriendSearch/FriendSearch.js index bb9fb7c..45e4393 100644 --- a/frontend/src/components/FriendSearch/FriendSearch.js +++ b/frontend/src/components/FriendSearch/FriendSearch.js @@ -22,7 +22,7 @@ function FriendSearch() { // const [error, setError] = useState(null); const getFriends = async () => { - const endpoint = `http://localhost:4000/users/getFriends/?username=${user}` + const endpoint = `http://34.168.40.206:4000/users/getFriends/?username=${user}` const res = await fetch(endpoint, { mode: 'cors', method: 'GET', diff --git a/frontend/src/components/FriendsDropdown/FriendsDropdown.js b/frontend/src/components/FriendsDropdown/FriendsDropdown.js index f8a75e3..e7f8053 100644 --- a/frontend/src/components/FriendsDropdown/FriendsDropdown.js +++ b/frontend/src/components/FriendsDropdown/FriendsDropdown.js @@ -45,7 +45,7 @@ export default function FriendsDropdown() { const navigate = useNavigate(); const getFriends = async () => { - const endpoint = `http://localhost:4000/users/getFriends/?username=${user}` + const endpoint = `http://34.168.40.206:4000/users/getFriends/?username=${user}` const res = await fetch(endpoint, { mode: 'cors', method: 'GET',