Use aiohttp application rather than server

We can do some route checking stuff later
This commit is contained in:
Jake Howard 2018-12-15 14:48:10 +00:00
parent eec4e46f3e
commit 9ac2e60843
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -9,7 +9,9 @@ async def handle_request(request):
def get_server():
return web.Server(handle_request)
application = web.Application()
application.router.add_route("*", r"/{path:.*}", handle_request)
return application
async def start_router(loop, port):