Skip to content

Commit

Permalink
fix video archive api route
Browse files Browse the repository at this point in the history
  • Loading branch information
sphinxrave committed Oct 19, 2023
1 parent 6236ce1 commit 1122ca3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/services/video.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -52,7 +52,7 @@ export function useVideo(videoId: string, config?: UseQueryOptions<Video>) {

return useQuery({
queryKey: ["video", videoId],
queryFn: async () => await client<Video>(`/videos/${videoId}`),
queryFn: async () => await client<Video>(`/api/v2/videos/${videoId}`),
...config,
});
}

0 comments on commit 1122ca3

Please sign in to comment.