support of older version of aiohttp
This commit is contained in:
parent
2b12c9bd0d
commit
40e1ec1991
|
@ -161,7 +161,7 @@ async def get_app(loop):
|
||||||
print(f' - {path} (http_get)')
|
print(f' - {path} (http_get)')
|
||||||
print()
|
print()
|
||||||
del extra_routes
|
del extra_routes
|
||||||
app.add_routes(routes)
|
app.router.add_routes(routes)
|
||||||
await dispatcher.on_join()
|
await dispatcher.on_join()
|
||||||
return await loop.create_server(app.make_handler(), '*', get_config()['http_server']['port'])
|
return await loop.create_server(app.make_handler(), '*', get_config()['http_server']['port'])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue