mirror of
https://github.com/langgenius/dify.git
synced 2026-06-07 16:32:01 +08:00
Co-authored-by: JzoNg <jzongcode@gmail.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
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]
|
|
}
|