pub1c-web/app/api/config.py

14 lines
265 B
Python
Raw Normal View History

2021-10-07 10:59:51 +00:00
from flask_restful import Resource
from app.glob import get_config, get_manager
class Config(Resource):
def get(self):
return get_config()
class ConfigTest(Resource):
def get(self):
manager = get_manager()
return manager.check()