from django.urls import path from django.contrib.auth.views import LogoutView from .views import UserListView, UserDetailView, AccountView, RequestOTPView, ChangePasswordView, \ OTPLoginView app_name = "users" urlpatterns = [ path('login/', OTPLoginView.as_view(), name='login'), path('logout/', LogoutView.as_view(), name='logout'), path('api/account/', AccountView.as_view(), name='account'), path('api/users/', UserListView.as_view()), path('api/users//', UserDetailView.as_view(), name='user_detail'), path('api/request_otp/', RequestOTPView.as_view(), name='request_otp'), path('api/change_password/', ChangePasswordView.as_view(), name='change_password'), ]