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

# pyrefly: ignore [missing-import]
from .views import (
    CustomTokenObtainPairView, RegistroView, UsuarioViewSet,
    SolicitarRestablecimientoView, RestablecerConfirmarView, SolicitudesRestablecimientoView
)

router = DefaultRouter()
router.register(r'gestion', UsuarioViewSet, basename='usuarios')

urlpatterns = [
    path('login/', CustomTokenObtainPairView.as_view(), name='token_obtain_pair'),
    path('registro/', RegistroView.as_view(), name='registro'),
    path('solicitar-restablecimiento/', SolicitarRestablecimientoView.as_view(), name='solicitar-restablecimiento'),
    path('restablecer-confirmar/', RestablecerConfirmarView.as_view(), name='restablecer-confirmar'),
    path('solicitudes-restablecimiento/', SolicitudesRestablecimientoView.as_view(), name='solicitudes-restablecimiento'),
    path('', include(router.urls)),
]
