diff --git a/README.md b/README.md index 1615c22..8b2e38f 100755 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ * [2. Include URLs](#2-include-urls) * [3. Use the callback decorator](#3-use-the-callback-decorator) * [4. Use the login button tag](#4-use-the-login-button-tag) + * [5. Protect API](#5-protect-api) * [⚙️ Advanced Usage](#⚙️-advanced-usage) * [Custom callback response handling](#custom-callback-response-handling) @@ -131,7 +132,7 @@ Or use `{% hopid_login_url %}` manually in `href`. ### 5. Protect API -```django +```python from django.http import JsonResponse from django_hopid.decorators import hopid_protected