mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-09 19:06:51 +08:00
15 lines
319 B
Python
15 lines
319 B
Python
from flask_login import current_user
|
|
from flask_restful import Resource
|
|
from services.feature_service import FeatureService
|
|
|
|
from . import api
|
|
|
|
|
|
class FeatureApi(Resource):
|
|
|
|
def get(self):
|
|
return FeatureService.get_features(current_user.current_tenant_id).dict()
|
|
|
|
|
|
api.add_resource(FeatureApi, '/features')
|