File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import axiosInstance from "./axiosInstance" ;
2- import type { CardType } from "@/types/cards" ; // Dashboard 타입 import
2+ import type { CardDetailType } from "@/types/cards" ; // Dashboard 타입 import
33import { apiRoutes } from "@/api/apiRoutes" ;
44
55/** 1. 카드 이미지 업로드 */
@@ -136,12 +136,12 @@ export const getCardsByColumn = async ({
136136} ;
137137
138138// 카드 상세 조회
139- export async function getCardDetail ( cardId : number ) : Promise < CardType > {
139+ export async function getCardDetail ( cardId : number ) : Promise < CardDetailType > {
140140 try {
141141 // apiRoutes를 사용하여 URL 동적 생성
142142 const url = apiRoutes . cardDetail ( cardId ) ;
143143 const response = await axiosInstance . get ( url ) ;
144- return response . data as CardType ;
144+ return response . data as CardDetailType ;
145145 } catch ( error ) {
146146 console . error ( "대시보드 데이터를 불러오는 데 실패했습니다." , error ) ;
147147 throw error ;
You can’t perform that action at this time.
0 commit comments