mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-26 02:13:29 +08:00
Refactor: migrate artifact API (#14348)
### What problem does this PR solve? Before migration: GET /v1/document/artifact/<filename> After migration: GET /api/v1/documents/artifact/<filename> ### Type of change - [x] Refactoring
This commit is contained in:
@@ -46,7 +46,7 @@ import styles from './index.module.less';
|
||||
const getChunkIndex = (match: string) => parseCitationIndex(match);
|
||||
|
||||
const isArtifactUrl = (url?: string) =>
|
||||
Boolean(url && url.includes('/document/artifact/'));
|
||||
Boolean(url && url.includes('/api/v1/documents/artifact/'));
|
||||
|
||||
const fetchArtifactBlob = async (url: string): Promise<Blob> => {
|
||||
const response = await request(url, {
|
||||
|
||||
Reference in New Issue
Block a user