Asyncio and aiohttp route all urls paths to handler Asyncio and aiohttp route all urls paths to handler python python

Asyncio and aiohttp route all urls paths to handler


You can use app.router.add_route('GET', '/{tail:.*}', handle) for catching all urls.

The part after the colon (:) is a regular expression. .* regexp describes everything, including path separators (/) and other symbols.