diff --git a/frontend/src/api/categoryList.ts b/frontend/src/api/categoryList.ts index bdb6db29c..001d4600c 100644 --- a/frontend/src/api/categoryList.ts +++ b/frontend/src/api/categoryList.ts @@ -14,7 +14,7 @@ export const transformCategoryListResponse = (categoryList: CategoryResponse[]) })); }; -const BASE_URL = process.env.VOTOGETHER_MOCKING_URL; +const BASE_URL = process.env.VOTOGETHER_BASE_URL; export const getUserCategoryList = async () => { const categoryList = await getFetch(`${BASE_URL}/categories`); diff --git a/frontend/src/mocks/categoryList.ts b/frontend/src/mocks/categoryList.ts index 17b6172ed..90423b109 100644 --- a/frontend/src/mocks/categoryList.ts +++ b/frontend/src/mocks/categoryList.ts @@ -14,7 +14,7 @@ export const mockCategoryHandlers = [ rest.post('/categories/:categoryId/like', (req, res, ctx) => { MOCK_CATEGORY_LIST[1].isFavorite = true; - return res(ctx.status(404), ctx.json({ message: '카테고리 즐겨찾기 등록 성공' })); + return res(ctx.status(201), ctx.json({ message: '카테고리 즐겨찾기 등록 성공' })); }), rest.delete('/categories/:categoryId/like', (req, res, ctx) => {