mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 18:08:07 +08:00
publish as pipeline
This commit is contained in:
@ -342,3 +342,14 @@ export const useExportPipelineDSL = () => {
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
export const usePublishAsCustomizedPipeline = () => {
|
||||
return useMutation({
|
||||
mutationKey: [NAME_SPACE, 'publish-as-customized-pipeline'],
|
||||
mutationFn: ({
|
||||
pipelineId,
|
||||
}: { pipelineId: string }) => {
|
||||
return get(`/rag/customized/pipelines/${pipelineId}/publish`)
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user