Skip to content

Commit

Permalink
removed localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy.li committed Oct 16, 2022
1 parent 507d073 commit 815bc3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/FriendSearch/FriendSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/FriendsDropdown/FriendsDropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 815bc3e

Please sign in to comment.