fix : addComment function
This commit is contained in:
@@ -79,7 +79,7 @@ const getArticle = async (slug: string | undefined): Promise<AxiosResponse> => {
|
||||
|
||||
const addCommentToArticle = async (slug: string | undefined, comment: object): Promise<AxiosResponse> => {
|
||||
let currentToken = localStorage.getItem("token");
|
||||
return axiosService.post('/api/articles' + slug + '/comments',{
|
||||
return axiosService.post('/api/articles/' + slug + '/comments',{
|
||||
comment
|
||||
},{
|
||||
headers:{
|
||||
|
||||
@@ -43,7 +43,6 @@
|
||||
<div class="row article-content">
|
||||
<div class="col-md-12">
|
||||
{{articleDetail.article.body}}
|
||||
{{articleDetail}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user