====== Routes ====== ------- Example ------- Adding routes follows the standard transmute pattern, with a decorator converting a function to an aiohttp route: .. code-block:: python import aiohttp_transmute # define a GET endpoint, taking a query parameter integers left and right, # which must be integers. @aiohttp_transmute.describe(paths="/{name}") async def multiply(request, name: str, left: int, right: int) -> int: return left + right # append to your route later aiohttp_transmute.route(app, multiply) the aiohttp request argument is supported: it will be passed into any function that has 'request' in it's function signature. see `transmute-core:function `_ for more information on customizing transmute routes. ----------------- API Documentation ----------------- .. autofunction:: aiohttp_transmute.describe