Exemplo n.º 1
0
def setup_config(app: web.Application) -> None:
    app.config = config
Exemplo n.º 2
0
def get_config(app: web.Application, config_path: str) -> web.Application:
    with open(config_path) as instream:
        config_str = instream.read()

    app.config = json.loads(config_str)