refactor(upload): replace upload card views with list table and addition details in table
This commit is contained in:
@@ -1,16 +1,20 @@
|
||||
import axiosClient from '../axios/axios';
|
||||
import { API_ROUTES } from '@/constants/apiRoutes';
|
||||
import { CompletedVideoResult, PaginationParams, UploadVideosResponse } from '@/types';
|
||||
import {
|
||||
CompletedVideoResult,
|
||||
PaginationParams,
|
||||
UploadListResponse,
|
||||
} from '@/types';
|
||||
|
||||
/**
|
||||
* Video Service
|
||||
*/
|
||||
export const videoService = {
|
||||
getMyUploads: async (
|
||||
getUploads: async (
|
||||
params?: PaginationParams,
|
||||
): Promise<UploadVideosResponse> => {
|
||||
const response = await axiosClient.get<UploadVideosResponse>(
|
||||
API_ROUTES.VIDEOS.MY_UPLOADS,
|
||||
): Promise<UploadListResponse> => {
|
||||
const response = await axiosClient.get<UploadListResponse>(
|
||||
API_ROUTES.VIDEOS.UPLOADS,
|
||||
{
|
||||
params: {
|
||||
skip: params?.skip ?? 0,
|
||||
|
||||
Reference in New Issue
Block a user