mirror of
https://github.com/langgenius/dify.git
synced 2025-07-31 05:18:40 +00:00
11 lines
269 B
TypeScript
11 lines
269 B
TypeScript
import { FlowType } from '@/types/common'
|
|
|
|
export const flowPrefixMap = {
|
|
[FlowType.appFlow]: 'apps',
|
|
[FlowType.ragPipeline]: 'rag/pipelines',
|
|
}
|
|
|
|
export const getFlowPrefix = (type?: FlowType) => {
|
|
return flowPrefixMap[type!] || flowPrefixMap[FlowType.appFlow]
|
|
}
|