feature.py 297 B

123456789101112
  1. from flask_restful import Resource
  2. from controllers.web import api
  3. from services.feature_service import FeatureService
  4. class SystemFeatureApi(Resource):
  5. def get(self):
  6. return FeatureService.get_system_features().model_dump()
  7. api.add_resource(SystemFeatureApi, '/system-features')