mirror of
				https://github.com/langgenius/dify.git
				synced 2025-10-31 10:53:02 +00:00 
			
		
		
		
	 dacd457478
			
		
	
	
		dacd457478
		
			
		
	
	
	
	
		
			
			Signed-off-by: -LAN- <laipz8200@outlook.com> Co-authored-by: zxhlyh <jasonapring2015@outlook.com>
		
			
				
	
	
		
			13 lines
		
	
	
		
			388 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			388 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { useQuery } from '@tanstack/react-query'
 | |
| import { get } from './base'
 | |
| import type { WorkflowConfigResponse } from '@/types/workflow'
 | |
| 
 | |
| const NAME_SPACE = 'workflow'
 | |
| 
 | |
| export const useWorkflowConfig = (appId: string) => {
 | |
|   return useQuery({
 | |
|     queryKey: [NAME_SPACE, 'config', appId],
 | |
|     queryFn: () => get<WorkflowConfigResponse>(`/apps/${appId}/workflows/draft/config`),
 | |
|   })
 | |
| }
 |