mirror of
https://github.com/langgenius/dify.git
synced 2026-04-04 21:00:18 -04:00
12 lines
303 B
TypeScript
12 lines
303 B
TypeScript
import { FlowType } from '@/types/common'
|
|
|
|
export const flowPrefixMap = {
|
|
[FlowType.appFlow]: 'apps',
|
|
[FlowType.ragPipeline]: 'rag/pipelines',
|
|
[FlowType.snippet]: 'snippets',
|
|
}
|
|
|
|
export const getFlowPrefix = (type?: FlowType) => {
|
|
return flowPrefixMap[type!] || flowPrefixMap[FlowType.appFlow]
|
|
}
|