diff --git a/src/app/(AppBarHeader)/toks-main/_lib/remotes/quiz.ts b/src/app/(AppBarHeader)/toks-main/_lib/remotes/quiz.ts deleted file mode 100644 index faab01b86..000000000 --- a/src/app/(AppBarHeader)/toks-main/_lib/remotes/quiz.ts +++ /dev/null @@ -1,21 +0,0 @@ -type Props = { page: number; size: number; categoryIds: string[] }; - -export const getQuizList = async ({ page, size, categoryIds }: Props) => { - const queryParams: Record = {}; - - if (categoryIds.length > 0) { - queryParams['categoryIds'] = categoryIds.join(','); - } - - queryParams['page'] = String(page); - queryParams['size'] = String(size); - - const searchParams = new URLSearchParams(queryParams).toString(); - const res = await fetch(`api/v1/quizzes?${searchParams}`, { - next: { - tags: ['quiz-list'], - }, - }); - - return res.json(); -};