# users/urls.py
from django.urls import include, path, re_path
from rest_auth.views import PasswordResetConfirmView
from .views import RegisterViewCustom, LoginViewCustom
from . import views

urlpatterns = [
    path('login/', LoginViewCustom.as_view(), name='account_login'),
    path('', include('rest_auth.urls')),
    path('signup/', RegisterViewCustom.as_view(), name='account_signup'),
    path('signup/', include('rest_auth.registration.urls')),
    path('all', views.UserListView.as_view()),
    re_path(r'^rest-auth/password/reset/confirm/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$', PasswordResetConfirmView.as_view(),
            name='password_reset_confirm')
]
