fix : addComment function

This commit is contained in:
minseokkang
2022-12-01 16:27:34 +09:00
parent ebf851d1c5
commit b8caa0140b
2 changed files with 1 additions and 2 deletions

View File

@@ -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:{

View File

@@ -43,7 +43,6 @@
<div class="row article-content">
<div class="col-md-12">
{{articleDetail.article.body}}
{{articleDetail}}
</div>
</div>