Skip to content

Commit

Permalink
chore: (#738) 모킹 데이터로 실험하던 코드 복구
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilpop8663 committed Nov 9, 2023
1 parent 965f0ba commit 0bf256b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/api/categoryList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<CategoryResponse[]>(`${BASE_URL}/categories`);
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/mocks/categoryList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 0bf256b

Please sign in to comment.