Spaces:
Sleeping
Sleeping
Download authService/urls.py from mohitlahoti2002/djangoServer: direct link, hf CLI and curl.
- Browser
- Download file 865 Bytes
-
https://huggingface.co/spaces/mohitlahoti2002/djangoServer/resolve/main/authService/urls.py
- Command line
-
hf download hf://spaces/mohitlahoti2002/djangoServer/authService/urls.py
-
curl -L -o urls.py https://huggingface.co/spaces/mohitlahoti2002/djangoServer/resolve/main/authService/urls.py
865 Bytes
| from django.urls import path | |
| from .views import ( | |
| UserRegistrationView, | |
| VerifyOTPView, | |
| LoginView, | |
| ProfileView, | |
| ForgotPasswordView, | |
| ResetPasswordView | |
| ) | |
| from rest_framework_simplejwt.views import ( | |
| TokenObtainPairView, | |
| TokenRefreshView, | |
| ) | |
| urlpatterns = [ | |
| path('register/', UserRegistrationView.as_view(), name='register'), | |
| path('verify-otp/', VerifyOTPView.as_view(), name='verify-otp'), | |
| path('login/', LoginView.as_view(), name='login'), | |
| path('profile/', ProfileView.as_view(), name='profile'), | |
| path('forgot-password/', ForgotPasswordView.as_view(), name='forgot-password'), | |
| path('reset-password/', ResetPasswordView.as_view(), name='reset-password'), | |
| path('token/', TokenObtainPairView.as_view(), name='token_obtain_pair'), | |
| path('token/refresh/', TokenRefreshView.as_view(), name='token_refresh'), | |
| ] | |