feat: added sse for upload section

This commit is contained in:
2026-07-02 14:28:28 +05:30
parent 53fe4e11fe
commit 278b9591d7
5 changed files with 133 additions and 0 deletions

View File

@@ -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
*/