Files
ragflow/web/src/services/plugin-service.ts
Jack 576431de99 Refactor: Change update doc from PUT to patch (#14067)
### What problem does this PR solve?

Before change, update_document in api/apps/restful_apis/document_api.py
is using "PUT".
After change, it will use "PATCH" which is more suitable.

### Type of change

- [x] Refactoring
2026-04-14 17:12:23 +08:00

17 lines
352 B
TypeScript

import api from '@/utils/api';
import registerServer from '@/utils/register-server';
import request from '@/utils/request';
const { llmTools } = api;
const methods = {
getLlmTools: {
url: llmTools,
method: 'get',
},
} as const;
const pluginService = registerServer<keyof typeof methods>(methods, request);
export default pluginService;