Skip to content
Snippets Groups Projects
Commit d5b802ae authored by Timothee P's avatar Timothee P :sunflower:
Browse files

implement post comment

parent 4b9f37d8
No related branches found
No related tags found
1 merge request!19implement comment post & comment attachment post
...@@ -19,7 +19,7 @@ const featureAPI = { ...@@ -19,7 +19,7 @@ const featureAPI = {
}, },
async postComment({ featureId, comment }) { async postComment({ featureId, comment }) {
const response = await axios.get( const response = await axios.post(
`${baseUrl}features/${featureId}/comments/`, { comment } `${baseUrl}features/${featureId}/comments/`, { comment }
); );
console.log(response) console.log(response)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment