allauth/headless/base/urls.py
raw| 1 | from __future__ import annotations |
| 2 | |
| 3 | from django.urls import URLPattern, path |
| 4 | |
| 5 | from allauth.headless.base import views |
| 6 | from allauth.headless.constants import Client |
| 7 | |
| 8 | |
| 9 | def build_urlpatterns(client: Client) -> list[URLPattern]: |
| 10 | return [ |
| 11 | path( |
| 12 | "config", |
| 13 | views.ConfigView.as_api_view(client=client), |
| 14 | name="config", |
| 15 | ), |
| 16 | ] |