diff --git a/src/app/features/dashboard_Id/api/fetchCards.ts b/src/app/features/dashboard_Id/api/fetchCards.ts index ab717ad..c059c5d 100644 --- a/src/app/features/dashboard_Id/api/fetchCards.ts +++ b/src/app/features/dashboard_Id/api/fetchCards.ts @@ -1,13 +1,12 @@ -import api from '@/app/shared/lib/testAxios' +import authHttpClient from '@/app/shared/lib/axios' -// import api from '@/app/shared/lib/axios' import { CardResponse } from '../type/Card.type' export async function fetchCards( columnId: number, size: number = 10, ): Promise { - const res = await api.get( + const res = await authHttpClient.get( `/${process.env.NEXT_PUBLIC_TEAM_ID}/cards?size=${size}&columnId=${columnId}`, ) return res.data diff --git a/src/app/features/dashboard_Id/api/fetchColumns.ts b/src/app/features/dashboard_Id/api/fetchColumns.ts index 3310193..dd741d2 100644 --- a/src/app/features/dashboard_Id/api/fetchColumns.ts +++ b/src/app/features/dashboard_Id/api/fetchColumns.ts @@ -1,6 +1,5 @@ -import api from '@/app/shared/lib/testAxios' +import authHttpClient from '@/app/shared/lib/axios' -// import api from '@/app/shared/lib/axios' import { Column, ColumnsResponse } from '../type/Column.type' export async function fetchColumns(dashboardId: number): Promise { @@ -8,7 +7,7 @@ export async function fetchColumns(dashboardId: number): Promise { throw new Error('dashboardId가 유효하지 않습니다.') } - const res = await api.get( + const res = await authHttpClient.get( `/${process.env.NEXT_PUBLIC_TEAM_ID}/columns?dashboardId=${dashboardId}`, ) diff --git a/src/app/mydashboard/components/MyDashboardGrid/MyDashboardGrid.tsx b/src/app/mydashboard/components/MyDashboardGrid/MyDashboardGrid.tsx index 9f87c89..72d167a 100644 --- a/src/app/mydashboard/components/MyDashboardGrid/MyDashboardGrid.tsx +++ b/src/app/mydashboard/components/MyDashboardGrid/MyDashboardGrid.tsx @@ -67,7 +67,10 @@ export default function MyDashboardGrid() { {/* 대시보드 카드 */} {dashboards.map((dashboard) => ( - + ))} diff --git a/src/app/shared/components/common/sidebar/Sidebar.tsx b/src/app/shared/components/common/sidebar/Sidebar.tsx index 3a781de..00737f3 100644 --- a/src/app/shared/components/common/sidebar/Sidebar.tsx +++ b/src/app/shared/components/common/sidebar/Sidebar.tsx @@ -69,7 +69,7 @@ export default function Sidebar(): JSX.Element { ) : ( dashboards.map((dashboard) => ( handleDashboardClick(dashboard)}