From 7091350ff36b703f2216b8700aa9f2b8531cb4fb Mon Sep 17 00:00:00 2001 From: Sick Yoon Date: Fri, 13 May 2016 10:59:22 +0900 Subject: [PATCH] update REAMDE.rst with usage sample code --- README.rst | 7 +++++++ 1 file changed, 7 insertions(+) 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 -------