from django.urls import path

from . import views

app_name = 'profiles'

urlpatterns = [
    path('register/', views.register, name='register'),
    path('login/', views.user_login, name='login'),
    path('logout/', views.user_logout, name='logout'),
    path('settings/', views.settings_page, name='settings'),
    path('settings/account/', views.account_page, name='account'),
    path('settings/tokens/create/', views.token_create, name='token_create'),
    path('settings/tokens/<int:token_id>/delete/', views.token_delete, name='token_delete'),
    path('profiles/<str:username>/', views.user_profile, name='user_profile'),
    path('settings/account/bio/preview/', views.bio_preview, name='bio_preview'),
    path('users/', views.user_list, name='user_list'),
    path('impersonate/stop/', views.impersonate_stop, name='impersonate_stop'),
    path('impersonate/<int:user_id>/', views.impersonate_start, name='impersonate_start'),
]