from django.urls import path from rest_framework_simplejwt.views import TokenRefreshView from . import views urlpatterns = [ path('register/', views.register_user, name='register'), path('login/', views.login_user, name='login'), path('verify-otp/', views.verify_otp, name='verify-otp'), path('resend-otp/', views.resend_otp, name='resend-otp'), path('forgot-password/', views.forgot_password, name='forgot-password'), path('verify-password-reset-otp/', views.verify_password_reset_otp, name='verify-password-reset-otp'), path('reset-password/', views.reset_password, name='reset-password'), path('resend-password-reset-otp/', views.resend_password_reset_otp, name='resend-password-reset-otp'), path('token/refresh/', TokenRefreshView.as_view(), name='token_refresh'), path('profile/', views.get_user_profile, name='profile'), path('profile/update/', views.update_user_profile, name='update_profile'), path('me/', views.UserDetailView.as_view(), name='user_detail'), ]