feat: added sse for upload section
This commit is contained in:
@@ -3,6 +3,7 @@ import { API_ROUTES } from '@/constants/apiRoutes';
|
||||
import {
|
||||
CompletedVideoResult,
|
||||
PaginationParams,
|
||||
SseTokenResponse,
|
||||
UploadListResponse,
|
||||
} from '@/types';
|
||||
|
||||
@@ -25,6 +26,13 @@ export const videoService = {
|
||||
return response.data;
|
||||
},
|
||||
|
||||
createUploadEventsToken: async (): Promise<SseTokenResponse> => {
|
||||
const response = await axiosClient.post<SseTokenResponse>(
|
||||
API_ROUTES.VIDEOS.UPLOAD_EVENTS_TOKEN,
|
||||
);
|
||||
return response.data;
|
||||
},
|
||||
|
||||
/**
|
||||
* Upload a video for processing
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user