Skip to content

Commit

Permalink
fix: like v1 버전으로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ooherin committed Oct 24, 2024
1 parent 216bef9 commit e67e29a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/apis/checklist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const getChecklistDetail = async (id: number) => {

export const getChecklists = async (isLikeFiltered: boolean = false) => {
const response = await fetcher.get({
url: BASE_URL + (isLikeFiltered ? ENDPOINT.CHECKLISTS_LIKE : ENDPOINT.CHECKLISTS_V1),
url: BASE_URL + (isLikeFiltered ? ENDPOINT.CHECKLISTS_LIKE_V1 : ENDPOINT.CHECKLISTS_V1),
});
const data = await response.json();
return data.checklists.map(mapObjNullToUndefined).slice(0, 10);
Expand Down
1 change: 1 addition & 0 deletions frontend/src/apis/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const ENDPOINT = {
// checklist
CHECKLISTS: '/checklists',
CHECKLISTS_LIKE: '/checklists/like',
CHECKLISTS_LIKE_V1: '/v1/checklists/like',
CHECKLISTS_V1: '/v1/checklists',
CHECKLIST_QUESTION: '/checklists/questions',
CHECKLIST_ALL_QUESTION: '/custom-checklist/all',
Expand Down

0 comments on commit e67e29a

Please sign in to comment.