mirror of
https://github.com/langgenius/dify.git
synced 2025-08-01 22:06:17 +00:00
11 lines
263 B
TypeScript
11 lines
263 B
TypeScript
![]() |
import { FlowType } from '@/types/common'
|
||
|
|
||
|
export const flowPrefixMap = {
|
||
|
[FlowType.appFlow]: 'apps',
|
||
|
[FlowType.ragFlow]: 'rag/pipelines',
|
||
|
}
|
||
|
|
||
|
export const getFlowPrefix = (type: FlowType) => {
|
||
|
return flowPrefixMap[type] || flowPrefixMap[FlowType.appFlow]
|
||
|
}
|