from django.urls import path, re_path
from authapp.views import logout
from authapp.views import UserLoginView, UserRegisterView, UserProfileView, UserVerifyView

app_name = 'authapp'

urlpatterns = [
    path('login/', UserLoginView.as_view(), name='login'),
    path('register/', UserRegisterView.as_view(), name='register'),
    path('profile/', UserProfileView.as_view(), name='profile'),
    path('logout/', logout, name='logout'),
    re_path(r'^verify/(?P<username>.+)/(?P<activation_key>\w+)/$', UserVerifyView.as_view(), name='verify'),
]
