Skip to content

Commit

Permalink
feat: 참고링크 post, delete 핸들러 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
leeminhee119 committed Apr 26, 2024
1 parent 34256a2 commit b06c41c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/mocks/handlers/resume/resume.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ const referenceLinkMock = [
url: 'https://github.com/resumeme/Frontend',
},
];
const MOCK_RESUME_ID = 0;
export const handlers = [
http.post(`${environments.baseUrlEnv()}/v1/resumes`, () => {
return HttpResponse.json({ id: 0 });
return HttpResponse.json({ id: MOCK_RESUME_ID });
}),
http.get(`${environments.baseUrlEnv()}/v1/resumes/:id/basic`, () => {
return HttpResponse.json();
Expand All @@ -21,6 +22,12 @@ export const handlers = [
http.patch(`${environments.baseUrlEnv()}/v2/resumes/:id`, () => {
return HttpResponse.json();
}),
http.post(`${environments.baseUrlEnv()}/v1/resumes/:id/links`, () => {
return HttpResponse.json();
}),
http.delete(`${environments.baseUrlEnv()}/v1/resumes/:id/components/:linkId`, () => {
return HttpResponse.json();
}),
http.get(`${environments.baseUrlEnv()}/v1/resumes/:id/links`, () => {
return HttpResponse.json(referenceLinkMock);
}),
Expand Down

0 comments on commit b06c41c

Please sign in to comment.