dify/api/controllers/web/feature.py

13 lines
297 B
Python
Raw Normal View History

2024-05-15 16:14:49 +08:00
from flask_restful import Resource
from controllers.web import api
from services.feature_service import FeatureService
class SystemFeatureApi(Resource):
def get(self):
return FeatureService.get_system_features().model_dump()
2024-05-15 16:14:49 +08:00
api.add_resource(SystemFeatureApi, "/system-features")