36 lines
1.4 KiB
Python
36 lines
1.4 KiB
Python
from django.urls import path
|
|
from . import views
|
|
from rest_framework_simplejwt.views import (
|
|
TokenRefreshView,
|
|
)
|
|
|
|
|
|
urlpatterns = [
|
|
path('token/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
|
|
path('signup/phone/', views.RegistrationEmailView.as_view(), name='mobile_app_login'),
|
|
|
|
path('signup/details/', views.RegistrationDetailsView.as_view(), name='mobile_app_login'),
|
|
path('signup/password/', views.RegistrationPasswordView.as_view(), name='reset_password'),
|
|
|
|
path('login/', views.LoginView.as_view(), name='mobile_app_login'),
|
|
|
|
path('request-otp/', views.OtpRequestView.as_view(), name='send_otp'),
|
|
path('verify-otp/', views.OTPVerificationView.as_view(), name='send_otp'),
|
|
|
|
# path('profile/view/<str:principal_type>/', views.ProfileView.as_view(), name='profile_veiw'),
|
|
path('profile/view/', views.ProfileView.as_view(), name='profile_veiw'),
|
|
path('profile/edit/', views.ProfileView.as_view(), name='profile_edit'),
|
|
path('profile/password-reset/', views.ProfilePasswordResetView.as_view(), name='password_reset'),
|
|
# path('profile/kyc/', views.KycDocumentView.as_view(), name='pofile_kyc'),
|
|
|
|
path('referral-code/<str:principal_type>/', views.ReferralCodeViews.as_view(), name='referral_code'),
|
|
path('referral-record/<str:principal_type>/', views.ReferralRecordViews.as_view(), name='referral_record'),
|
|
|
|
path('google-login/', views.GoogleLoginAPIView.as_view(), name='google-login'),
|
|
|
|
|
|
|
|
|
|
|
|
]
|