mirror of
https://github.com/ClaytonWWilson/CS307-Team24.git
synced 2025-12-16 02:08:47 +00:00
user Feed
This commit is contained in:
parent
cc20e30990
commit
83052f0a80
@ -8,7 +8,6 @@
|
||||
},
|
||||
"functions": {
|
||||
"predeploy": [
|
||||
"npm --prefix \"$RESOURCE_DIR\" run lint"
|
||||
]
|
||||
},
|
||||
"hosting": {
|
||||
|
||||
@ -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">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user