From b06c41cc17e370cec2c57366d81b0632474ac551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=8B=E1=85=B5=E1=84=86=E1=85=B5=E1=86=AB=E1=84=92?= =?UTF-8?q?=E1=85=B4?= Date: Fri, 26 Apr 2024 19:58:42 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=B0=B8=EA=B3=A0=EB=A7=81=ED=81=AC=20?= =?UTF-8?q?post,=20delete=20=ED=95=B8=EB=93=A4=EB=9F=AC=20=EC=9E=91?= =?UTF-8?q?=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mocks/handlers/resume/resume.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/mocks/handlers/resume/resume.ts b/src/mocks/handlers/resume/resume.ts index bed6a46d..a6ada4a8 100644 --- a/src/mocks/handlers/resume/resume.ts +++ b/src/mocks/handlers/resume/resume.ts @@ -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(); @@ -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); }),