浏览代码

modified video upload api path

tomoya 2 年之前
父节点
当前提交
9cea34d0c6
共有 1 个文件被更改,包括 1 次插入1 次删除
  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));