from django.urls import path
from rest_framework_simplejwt import views as jwt_views
from apps.core import views


urlpatterns = [
    path(
        'register/',
        views.RegistrationView.as_view(),
        name='register'
    ),
    path(
        'account-activation/<secret_key>',
        views.AccountActivationAPIView.as_view(),
        name='account-activation'
    ),
    path(
        'resend-activation/',
        views.ResendActivationAPIView.as_view(),
        name='resend-activation'
    ),
    path(
        'login/',
        jwt_views.TokenObtainPairView.as_view(),
        name='token_obtain_pair'
    ),
    path(
        'me/',
        views.UserDetailView.as_view(),
        name='user'
    ),
    path(
        'forget-password/',
        views.ForgetPasswordView.as_view(),
        name='forget_password'
    ),
    path(
        'token-refresh/',
        jwt_views.TokenRefreshView.as_view(),
        name='token_refresh'
    ),
    path(
        'token/verify/',
        jwt_views.TokenVerifyView.as_view(),
        name='token_verify'
    ),
    path(
        'reset-password/<secret_key>',
        views.ResetPasswordAPIView.as_view(),
        name='reset-password'
    ),
    path(
        'email-exist/',
        views.EmailExistAPIView.as_view(),
        name='email-exist'
    ),
    path(
        'account-status/',
        views.AccountStatusAPIView.as_view(),
        name='account-status'
    ),
    path(
        'change-password/',
        views.ChangePasswordView.as_view(),
        name='change-password'
    ),
]
