From 1122ca328b1da576e7976448c6c856c23ec91872 Mon Sep 17 00:00:00 2001 From: sphinxrave <62570796+sphinxrave@users.noreply.github.com> Date: Wed, 18 Oct 2023 20:49:27 -0700 Subject: [PATCH] fix video archive api route --- packages/react/src/services/video.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react/src/services/video.service.ts b/packages/react/src/services/video.service.ts index 6d1528e9a..0264c2502 100644 --- a/packages/react/src/services/video.service.ts +++ b/packages/react/src/services/video.service.ts @@ -37,7 +37,7 @@ export function useVideos( initialPageParam: 0, queryFn: async ({ pageParam = 0 }) => ( - await client<{ items: VideoBase[]; total: string }>("/videos", { + await client<{ items: VideoBase[]; total: string }>("/api/v2/videos", { params: { ...params, pagenated: true, offset: pageParam }, }) ).items, @@ -52,7 +52,7 @@ export function useVideo(videoId: string, config?: UseQueryOptions