Browse Source

modified video upload api path

tomoya 2 năm trước cách đây
mục cha
commit
9cea34d0c6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      frontend/src/api.ts

+ 1 - 1
frontend/src/api.ts

@@ -61,7 +61,7 @@ export const api = {
     const formData = new FormData();
     formData.append("title", title)
     formData.append("upload_file", file)
-    return axios.post<{msg:string}>(`${apiUrl}/api/v1/videos`, formData, authHeaders(token));
+    return axios.post<{msg:string}>(`${apiUrl}/api/v1/videos/`, formData, authHeaders(token));
   },
   async getVideos(token: string) {
     return axios.get<Video[]>(`${apiUrl}/api/v1/videos/`, authHeaders(token));