feat: add billing switch. (#1789)
Co-authored-by: StyleZhang <jasonapring2015@outlook.com>
This commit is contained in:
parent
022450768f
commit
7b37e05dec
16 changed files with 152 additions and 75 deletions
14
api/controllers/console/feature.py
Normal file
14
api/controllers/console/feature.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
from flask_restful import Resource
|
||||
from flask_login import current_user
|
||||
|
||||
from . import api
|
||||
from services.feature_service import FeatureService
|
||||
|
||||
|
||||
class FeatureApi(Resource):
|
||||
|
||||
def get(self):
|
||||
return FeatureService.get_features(current_user.current_tenant_id).dict()
|
||||
|
||||
|
||||
api.add_resource(FeatureApi, '/features')
|
||||
Loading…
Add table
Add a link
Reference in a new issue