diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 47f7ed2ca..18200d0d1 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "code-zap", - "version": "1.1.1", + "version": "1.1.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "code-zap", - "version": "1.1.1", + "version": "1.1.3", "license": "ISC", "dependencies": { "@emotion/react": "^11.11.4", diff --git a/frontend/playwright/tests/search.spec.ts b/frontend/playwright/tests/search.spec.ts index aeaa61ced..cf37599fb 100644 --- a/frontend/playwright/tests/search.spec.ts +++ b/frontend/playwright/tests/search.spec.ts @@ -12,7 +12,7 @@ test('검색창에 `검색테스트`를 입력하면 `검색테스트`가 내용 await searchTemplates({ page, keyword }); - await waitForSuccess({ page, apiUrl: '/templates/login?keyword' }); + await waitForSuccess({ page, apiUrl: '/templates?keyword' }); await expect(page.getByRole('link', { name: /검색테스트/ })).toBeVisible(); }); @@ -23,6 +23,6 @@ test('검색창에 `ㅁㅅㅌㅇ`를 입력할 경우 `검색 결과가 없습 await searchTemplates({ page, keyword }); - await waitForSuccess({ page, apiUrl: '/templates/login?keyword' }); + await waitForSuccess({ page, apiUrl: '/templates?keyword' }); await expect(page.locator('div').filter({ hasText: /^검색 결과가 없습니다\.$/ })).toBeVisible(); }); diff --git a/frontend/playwright/tests/templates.spec.ts b/frontend/playwright/tests/templates.spec.ts index 774454c6e..1dcd3c088 100644 --- a/frontend/playwright/tests/templates.spec.ts +++ b/frontend/playwright/tests/templates.spec.ts @@ -50,7 +50,7 @@ test('템플릿 카드를 누르면 템플릿 제목, 설명, 작성자, 생성 }) => { await page.goto('/my-templates'); // 템플릿 목록 - await waitForSuccess({ page, apiUrl: '/templates/login?keyword' }); + await waitForSuccess({ page, apiUrl: '/templates?keyword' }); const templateCard = page.getByRole('link', { name: '상세조회테스트' }); diff --git a/frontend/src/api/templates.ts b/frontend/src/api/templates.ts index 23b2c6d17..3277b461f 100644 --- a/frontend/src/api/templates.ts +++ b/frontend/src/api/templates.ts @@ -66,7 +66,7 @@ export const getTemplateList = async ({ queryParams.append('keyword', keyword); } - const url = `${TEMPLATE_API_URL}${memberId ? '/login' : ''}?${queryParams.toString()}`; + const url = `${TEMPLATE_API_URL}?${queryParams.toString()}`; const response = await customFetch({ url, @@ -83,7 +83,6 @@ export const getTemplateExplore = async ({ sort = DEFAULT_SORTING_OPTION.key, page = 1, size = PAGE_SIZE, - memberId, keyword, }: TemplateListRequest) => { const queryParams = new URLSearchParams({ @@ -96,7 +95,7 @@ export const getTemplateExplore = async ({ queryParams.append('keyword', keyword); } - const url = `${TEMPLATE_API_URL}${memberId ? '/login' : ''}?${queryParams.toString()}`; + const url = `${TEMPLATE_API_URL}?${queryParams.toString()}`; const response = await customFetch({ url, @@ -109,9 +108,9 @@ export const getTemplateExplore = async ({ throw new Error(response.detail); }; -export const getTemplate = async ({ id, memberId }: TemplateRequest) => { +export const getTemplate = async ({ id }: TemplateRequest) => { const response = await customFetch