fix endpoints

This commit is contained in:
srgooglo 2022-09-09 17:41:39 +02:00
parent b29f51332c
commit 12938553d7
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ export default (props) => {
setUploaderVisible(false)
setFocused(false)
const response = api.put.post({ ...postData }).catch(error => {
const response = api.post.post({ ...postData }).catch(error => {
console.error(error)
antd.message.error(error)

View File

@ -129,7 +129,7 @@ export default class PostsFeed extends React.Component {
}
onLikePost = async (data) => {
let result = await this.api.put.toogleLike({ post_id: data._id }).catch(() => {
let result = await this.api.post.toogleLike({ post_id: data._id }).catch(() => {
antd.message.error("Failed to like post")
return false