Fix get image url

This commit is contained in:
2025-10-11 22:51:08 +02:00
parent f101376bef
commit ec89f95880
3 changed files with 20 additions and 12 deletions

View File

@@ -13,5 +13,5 @@ export const isImageFile = (filePath: string): boolean => {
export const getFileUrl = (workspaceName: string, filePath: string) => {
return `${API_BASE_URL}/workspaces/${encodeURIComponent(
workspaceName
)}/files/${encodeURIComponent(filePath)}`;
)}/files/content?file_path=${encodeURIComponent(filePath)}`;
};