Added link in index.js

This commit is contained in:
shobhitm23
2019-10-29 13:45:36 -04:00
parent 3f3a93be8c
commit 2fc37e3e34
2 changed files with 5 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ class user extends Component {
})
})
.catch(err => console.log(err));
axios.get('/posts')
axios.get('/getAllPosts')
.then(res => {
this.setState({
posts: res.data