You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 1 година
преди 1 година
преди 1 година
преди 1 година
преди 1 година
1234567891011121314151617181920212223
  1. from flask_login import current_user
  2. from flask_restful import Resource
  3. from services.feature_service import FeatureService
  4. from . import api
  5. from .wraps import cloud_utm_record
  6. class FeatureApi(Resource):
  7. @cloud_utm_record
  8. def get(self):
  9. return FeatureService.get_features(current_user.current_tenant_id).dict()
  10. class SystemFeatureApi(Resource):
  11. def get(self):
  12. return FeatureService.get_system_features().dict()
  13. api.add_resource(FeatureApi, '/features')
  14. api.add_resource(SystemFeatureApi, '/system-features')