import API from './request'; export const videoApi = { uploadVideo: async (file) => { const data = new FormData(); data.append('file', file); const res = await API.imageClient.post('/upload/video', data, { headers: { 'Content-Type': 'multipart/form-data', }, }); return res.data; }, uploadVideoByURL: async (url) => { const res = await API.builderBffClient.post('/v1/upload/video', { url, }); return res.data; }, };