Files
dify/web/service/utils.ts
2026-03-27 16:02:47 +08:00

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]
}