mirror of
				https://github.com/langgenius/dify.git
				synced 2025-10-31 02:42:59 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			378 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			378 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from flask_login import current_user
 | |
| from flask_restful import Resource
 | |
| 
 | |
| from services.feature_service import FeatureService
 | |
| 
 | |
| from . import api
 | |
| from .wraps import cloud_utm_record
 | |
| 
 | |
| 
 | |
| class FeatureApi(Resource):
 | |
| 
 | |
|     @cloud_utm_record
 | |
|     def get(self):
 | |
|         return FeatureService.get_features(current_user.current_tenant_id).dict()
 | |
| 
 | |
| 
 | |
| api.add_resource(FeatureApi, '/features')
 | 
