feat: upload file in FileManager #345 (#529)

### What problem does this PR solve?

feat: upload file in FileManager #345 

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-04-25 08:46:18 +08:00
committed by GitHub
parent b06d6395bb
commit 51e7697df7
17 changed files with 412 additions and 50 deletions

View File

@@ -9,6 +9,7 @@ const {
renameFile,
getAllParentFolder,
createFolder,
connectFileToKnowledge,
} = api;
const methods = {
@@ -36,6 +37,10 @@ const methods = {
url: createFolder,
method: 'post',
},
connectFileToKnowledge: {
url: connectFileToKnowledge,
method: 'post',
},
} as const;
const fileManagerService = registerServer<keyof typeof methods>(