support of older version of aiohttp

This commit is contained in:
Emmanuel Garette 2020-04-09 10:11:18 +02:00
parent 2b12c9bd0d
commit 9741669487

View File

@ -161,7 +161,7 @@ async def get_app(loop):
print(f' - {path} (http_get)')
print()
del extra_routes
app.add_routes(routes)
app.router.add_routes(routes)
await dispatcher.on_join()
return await loop.create_server(app.make_handler(), '*', get_config()['http_server']['port'])