diff --git a/frontend/src/components/Post.js b/frontend/src/components/Post.js index 1111cd6..1223ef2 100644 --- a/frontend/src/components/Post.js +++ b/frontend/src/components/Post.js @@ -61,7 +61,7 @@ const Post = (props) => { }, body: JSON.stringify({ postid: props.id }), }; - fetch(`${process.env.REACT_APP_API_ENDPOINT}/postcomment`, requestOptions) + fetch(`${process.env.REACT_APP_API_ENDPOINT}/post/comments`, requestOptions) .then((response) => response.json()) .then((data) => { console.log(data); @@ -109,7 +109,7 @@ const Post = (props) => {

- {state.upvotes} Likes + {state.upvotes.length()} Likes