Spaces:
Sleeping
Sleeping
Download authentication/urls.py from FerdinandPyCode/lambda_hf_v2: direct link, hf CLI and curl.
- Browser
- Download file 667 Bytes
-
https://huggingface.co/spaces/FerdinandPyCode/lambda_hf_v2/resolve/main/authentication/urls.py
- Command line
-
hf download hf://spaces/FerdinandPyCode/lambda_hf_v2/authentication/urls.py
-
curl -L -o urls.py https://huggingface.co/spaces/FerdinandPyCode/lambda_hf_v2/resolve/main/authentication/urls.py
667 Bytes
| from django.urls import path, include, re_path | |
| from rest_framework.routers import DefaultRouter | |
| from authentication.views import LogoutAPIView, UserActivationView, CustomUserViewset, AccountUserViewset | |
| router = DefaultRouter() | |
| router.register('auth', AccountUserViewset) | |
| urlpatterns = [ | |
| # path('auth/', include('djoser.urls')), | |
| path('', include(router.urls)), | |
| path('auth/', include('djoser.urls.jwt')), | |
| path('auth/logout/', LogoutAPIView.as_view(), name="logout"), | |
| path('auth/user-me/update/', CustomUserViewset.as_view(), name='patch_user'), | |
| path('auth/users/activation/<str:email>/<str:activation_code>/', UserActivationView.as_view()), | |
| ] |