fix,docs: README.md update, api 수정

This commit is contained in:
shinmj
2021-12-31 10:18:38 +09:00
parent 32bf74c43f
commit 866eb35d4a
6 changed files with 67 additions and 23 deletions

View File

@@ -1,5 +1,5 @@
import axios, { AxiosError } from 'axios'
import { Page, Pageable, Sort } from '@utils'
import axios, { AxiosError } from 'axios'
import { common } from './common'
export interface CommentPage {
@@ -102,7 +102,7 @@ export const commentService = {
all: (boardNo: number, postsNo: number) =>
new Promise<Page>((resolve, rejects) => {
try {
axios.get(`${COMMENT_URL}/${boardNo}/${postsNo}/all`).then(result => {
axios.get(`${COMMENT_URL}/total/${boardNo}/${postsNo}`).then(result => {
resolve(result.data)
})
} catch (error) {