mirror of
https://github.com/ClaytonWWilson/CS307-Team24.git
synced 2026-03-10 13:15:05 +00:00
writing microblogs not hardcoded anymore
This commit is contained in:
@@ -36,7 +36,6 @@ class Writing_Microblogs extends Component {
|
||||
// alert('A title for the microblog was inputted: ' + this.state.title + '\nA microblog was posted: ' + this.state.value);
|
||||
const postData = {
|
||||
body: this.state.value,
|
||||
userHandle: "new user",
|
||||
userImage: "bing-url",
|
||||
microBlogTitle: this.state.title,
|
||||
microBlogTopics: this.state.topics.split(', ')
|
||||
@@ -46,7 +45,7 @@ class Writing_Microblogs extends Component {
|
||||
}
|
||||
|
||||
axios
|
||||
.post('/putPost', postData, headers)
|
||||
.post("/putPost", postData, headers)
|
||||
.then((res) =>{
|
||||
alert('Post was shared successfully!')
|
||||
console.log(res.data);
|
||||
|
||||
Reference in New Issue
Block a user