feat: Delete the files uploaded in the external dialog box #1880 (#1967)

### What problem does this PR solve?

feat: Delete the files uploaded in the external dialog box #1880

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-08-15 18:31:46 +08:00
committed by GitHub
parent d3ff1a30bf
commit 7bdd5a48c0
11 changed files with 111 additions and 33 deletions

View File

@ -12,6 +12,7 @@ const {
get_document_list,
document_change_status,
document_rm,
document_delete,
document_create,
document_change_parser,
document_thumbnails,
@ -131,6 +132,10 @@ const methods = {
url: knowledge_graph,
method: 'get',
},
document_delete: {
url: document_delete,
method: 'delete',
},
};
const kbService = registerServer<keyof typeof methods>(methods, request);