diff --git a/src/apis/getBoardPosts.ts b/src/apis/getBoardPosts.ts index aba10265..971a60e6 100644 --- a/src/apis/getBoardPosts.ts +++ b/src/apis/getBoardPosts.ts @@ -1,5 +1,5 @@ import { GetBoardDetailResponse, getBoardPostsProps } from '@/types/apis/get'; -import { client } from './client'; +import { clientAuth } from './client'; import { AxiosResponse } from 'axios'; export const getBoardPosts = async ({ @@ -10,7 +10,7 @@ export const getBoardPosts = async ({ category, boardCode, }: getBoardPostsProps): Promise => { - const response: AxiosResponse = await client({ + const response: AxiosResponse = await clientAuth({ url: `/board/${boardCode}/posts`, method: 'get', params: {