diff --git a/README.rst b/README.rst index fa83e86..9aff323 100644 --- a/README.rst +++ b/README.rst @@ -10,6 +10,13 @@ __ aiohttp_web_ Usage ----- +.. code-block:: python + + from aiohttp_security import authorize + + @authorize(required=True, redirect_url='/login', permission='admin') + async def index(request, identity=None): + return web.Response(body=b'OK') License -------