14 lines
265 B
Python
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()
|