ソースを参照

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));