dify/web/service/utils.ts

11 lines
269 B
TypeScript
Raw Normal View History

2025-07-14 15:10:21 +08:00
import { FlowType } from '@/types/common'
export const flowPrefixMap = {
[FlowType.appFlow]: 'apps',
2025-07-14 16:04:43 +08:00
[FlowType.ragPipeline]: 'rag/pipelines',
2025-07-14 15:10:21 +08:00
}
export const getFlowPrefix = (type?: FlowType) => {
return flowPrefixMap[type!] || flowPrefixMap[FlowType.appFlow]
2025-07-14 15:10:21 +08:00
}