from accounts import views

from django.urls import path
from django.contrib.auth.views import LoginView, LogoutView


urlpatterns = [
    path('login', LoginView.as_view(template_name='auth/login.html'), name='login'),
    path('logout', LogoutView.as_view(), name='logout'),
    path('register', views.RegisterView.as_view(), name='register'),
    path('change_password', views.ChangePasswordView.as_view(), name='change_password'),
    path('<int:id>', views.UserDetailView.as_view(), name='profile'),
    path('update', views.UserUpdateView.as_view(), name='user_update'),
]
