From 9ac2e6084362f7325446a0b14edb832e19ff843c Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 15 Dec 2018 14:48:10 +0000 Subject: [PATCH] Use aiohttp application rather than server We can do some route checking stuff later --- catfish/router/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/catfish/router/__init__.py b/catfish/router/__init__.py index 96c8a87..943acbd 100644 --- a/catfish/router/__init__.py +++ b/catfish/router/__init__.py @@ -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):