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

@@ -50,6 +50,9 @@ export const API_ROUTES = {
VIDEOS: {
UPLOAD: '/biz/api/v1/upload',
UPLOADS: '/biz/api/v1/uploads',
UPLOAD_EVENTS_TOKEN: '/biz/api/v1/uploads/events/token',
UPLOAD_EVENTS: (token: string) =>
`/biz/api/v1/uploads/events?sse_token=${encodeURIComponent(token)}`,
RESULTS: (id: string) => `/biz/api/v1/results/${id}/completed`,
},
TICKETS: {