feat: Fetch mind map in search page #2247 (#2292)

### What problem does this PR solve?
feat: Fetch mind map in search page #2247

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-09-06 19:56:17 +08:00
committed by GitHub
parent 1aba978de2
commit e85fea31a8
17 changed files with 111 additions and 133 deletions

View File

@ -25,6 +25,7 @@ const {
tts,
ask,
mindmap,
getRelatedQuestions,
} = api;
const methods = {
@ -116,6 +117,10 @@ const methods = {
url: mindmap,
method: 'post',
},
getRelatedQuestions: {
url: getRelatedQuestions,
method: 'post',
},
} as const;
const chatService = registerServer<keyof typeof methods>(methods, request);