Skip to content

Commit 8f1d314

Browse files
authored
Update tweetsActions.js
1 parent 5e6924d commit 8f1d314

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

5-redux-react/src/js/actions/tweetsActions.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@ import axios from "axios";
22

33
export function fetchTweets() {
44
return function(dispatch) {
5-
axios.get("http://rest.learncode.academy/api/test123/tweets")
5+
/*
6+
http://rest.learncode.academy is a public test server, so another user's experimentation can break your tests
7+
If you get console errors due to bad data:
8+
- change "reacttest" below to any other username
9+
- post some tweets to http://rest.learncode.academy/api/yourusername
10+
*/
11+
axios.get("http://rest.learncode.academy/api/reacttest/tweets")
612
.then((response) => {
713
dispatch({type: "FETCH_TWEETS_FULFILLED", payload: response.data})
814
})

0 commit comments

Comments
 (0)