user Feed

This commit is contained in:
Aditya Sankaran 2019-11-08 17:09:57 -05:00
parent cc20e30990
commit 83052f0a80
2 changed files with 2 additions and 3 deletions

View File

@ -8,7 +8,6 @@
},
"functions": {
"predeploy": [
"npm --prefix \"$RESOURCE_DIR\" run lint"
]
},
"hosting": {

View File

@ -26,7 +26,7 @@ class Feed extends Component {
componentDidMount() {
axios.get("https://us-central1-twistter-e4649.cloudfunctions.net/api/getallPostsforFeed")
axios.get("/getallPostsforFeed")
.then((res) => {
const post = res.data;
this.setState({microBlogs : post})
@ -55,7 +55,7 @@ class Feed extends Component {
" " + microBlog.createdAt.substring(11,19)}
<br></br>Who wrote the microBlog: {microBlog.userHandle}
<br></br>Body of post: {microBlog.body}
<br></br>ID of post: {microBlog.id}
<br></br>Tagged topics: {microBlog.microBlogTopics.join("," + " ")}
<br></br><br></br><br></br>
<div className="buttons">