from django.urls import path
from rest_framework.routers import DefaultRouter

from .views import UserRegistrationViewSet, UserProfileAPIView, ChangeUserPasswordAPIView, ChangeUserEmailViewSet, \
    UserRegistrationConfirmationViewSet

router = DefaultRouter()
router.register('register', UserRegistrationViewSet, basename='registration')
router.register('profile/change_email', ChangeUserEmailViewSet, basename='change_email')
router.register('profile/registration/complete', UserRegistrationConfirmationViewSet, basename='complete_registration')

urlpatterns = [
    path('profile/', UserProfileAPIView.as_view(), name='profile'),
    path('profile/change_password/', ChangeUserPasswordAPIView.as_view(), name='change-password')
]

urlpatterns += router.urls
