Use aiohttp application rather than server
We can do some route checking stuff later
This commit is contained in:
parent
eec4e46f3e
commit
9ac2e60843
1 changed files with 3 additions and 1 deletions
|
@ -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):
|
||||
|
|
Reference in a new issue