Test: 썸네일 추가

This commit is contained in:
정현조 2024-09-24 09:26:55 +09:00
parent ab60ed9fb9
commit 8931bd323a

View File

@ -7,7 +7,6 @@ import {
MemberResponse,
RefreshTokenResponse,
AutoLabelingResponse,
ProjectListResponse,
ErrorResponse,
} from '@/types';
@ -100,15 +99,15 @@ export const handlers = [
| 'segmentation',
createdAt: new Date().toISOString(),
updatedAt: new Date().toISOString(),
thumbnail: `thumbnail_${lastProjectId + index + 1}.jpg`,
}));
// 응답 생성
const response: ProjectListResponse = {
workspaceResponses: projects,
};
const response: ProjectResponse[] = projects;
return HttpResponse.json(response);
}),
http.get('/api/projects/:projectId', ({ params }) => {
// 프로젝트 조회 핸들러
const { projectId } = params;