mirror of
				https://github.com/langgenius/dify.git
				synced 2025-10-31 02:42:59 +00:00 
			
		
		
		
	
		
			
	
	
		
			18 lines
		
	
	
		
			272 B
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			18 lines
		
	
	
		
			272 B
		
	
	
	
		
			Python
		
	
	
	
	
	
|   | from flask_restful import Resource | ||
|  | 
 | ||
|  | from controllers.console import api | ||
|  | 
 | ||
|  | 
 | ||
|  | class PingApi(Resource): | ||
|  | 
 | ||
|  |     def get(self): | ||
|  |         """
 | ||
|  |         For connection health check | ||
|  |         """
 | ||
|  |         return { | ||
|  |             "result": "pong" | ||
|  |         } | ||
|  | 
 | ||
|  | 
 | ||
|  | api.add_resource(PingApi, '/ping') |