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):