from django.urls import path

from .views import (
    change_password,
    login,
    logout,
    me,
    register,
    team_member_detail,
    team_member_password,
    team_members,
    update_avatar,
)


urlpatterns = [
    path("register/", register, name="auth-register"),
    path("login/", login, name="auth-login"),
    path("logout/", logout, name="auth-logout"),
    path("me/", me, name="auth-me"),
    path("me/password/", change_password, name="auth-change-password"),
    path("me/avatar/", update_avatar, name="auth-avatar"),
    path("team/members/", team_members, name="team-members"),
    path("team/members/<uuid:member_id>/", team_member_detail, name="team-member-detail"),
    path("team/members/<uuid:member_id>/password/", team_member_password, name="team-member-password"),
]
