pub1c-web/app/api/config.py

14 lines
265 B
Python

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()