mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-05 07:10:29 +08:00
Refa: files /file API to RESTFul style (#13741)
### What problem does this PR solve? Files /file API to RESTFul style. ### Type of change - [x] Documentation Update - [x] Refactoring --------- Co-authored-by: writinwaters <cai.keith@gmail.com> Co-authored-by: Liu An <asiro@qq.com>
This commit is contained in:
@@ -6,7 +6,6 @@ const {
|
||||
listFile,
|
||||
removeFile,
|
||||
uploadFile,
|
||||
renameFile,
|
||||
getAllParentFolder,
|
||||
createFolder,
|
||||
connectFileToKnowledge,
|
||||
@@ -23,16 +22,12 @@ const methods = {
|
||||
},
|
||||
removeFile: {
|
||||
url: removeFile,
|
||||
method: 'post',
|
||||
method: 'delete',
|
||||
},
|
||||
uploadFile: {
|
||||
url: uploadFile,
|
||||
method: 'post',
|
||||
},
|
||||
renameFile: {
|
||||
url: renameFile,
|
||||
method: 'post',
|
||||
},
|
||||
getAllParentFolder: {
|
||||
url: getAllParentFolder,
|
||||
method: 'get',
|
||||
|
||||
Reference in New Issue
Block a user