from django.urls import path from rest_framework_simplejwt.views import TokenRefreshView from apps.accounts.views import ( MeView, OTPRequestView, OTPVerifyView, PhoneAuthRequestView, PhoneAuthVerifyView, PasswordTokenObtainDeprecatedView, RegisterView, SocialLoginPlaceholderView, ) urlpatterns = [ path("register/", RegisterView.as_view(), name="register"), path("me/", MeView.as_view(), name="me"), path("token/", PasswordTokenObtainDeprecatedView.as_view(), name="token_obtain_pair"), path("token/refresh/", TokenRefreshView.as_view(), name="token_refresh"), path("otp/request/", OTPRequestView.as_view(), name="otp_request"), path("otp/verify/", OTPVerifyView.as_view(), name="otp_verify"), path("phone/request/", PhoneAuthRequestView.as_view(), name="phone_auth_request"), path("phone/verify/", PhoneAuthVerifyView.as_view(), name="phone_auth_verify"), path("social//", SocialLoginPlaceholderView.as_view(), name="social_login"), ]