# This file defines the URL patterns for the customs app in a Django project. from django.urls import path, include from rest_framework.routers import DefaultRouter # import necessary viewsets from .views import ( ViewSetPedimento, ViewSetTipoOperacion, ViewSetProcesamientoPedimento, ViewSetEDocument, ViewSetCove, ImportadorViewSet, PartidaViewSet ) # from .views import YourViewSet # Import your viewsets here router = DefaultRouter() # Register your viewsets with the router here # Example: # from .views import MyViewSet # router.register(r'myviewset', MyViewSet, basename='myviewset') router.register(r'pedimentos', ViewSetPedimento, basename='Pedimento') router.register(r'tiposoperacion', ViewSetTipoOperacion, basename='TipoOperacion') router.register(r'procesamientopedimentos', ViewSetProcesamientoPedimento, basename='ProcesamientoPedimento') router.register(r'edocuments', ViewSetEDocument, basename='EDocument') router.register(r'coves', ViewSetCove, basename='Cove') router.register(r'importadores', ImportadorViewSet, basename='Importador') router.register(r'partidas', PartidaViewSet, basename='Partida') # Import auditor views from .views_auditor import ( crear_partidas_organizacion, crear_partidas_pedimento, auditar_pedimentos_endpoint, auditar_procesamiento_remesas_endpoint, auditar_procesamiento_remesa_pedimento_endpoint ) urlpatterns = [ path('', include(router.urls)), path('auditor/crear-partidas/organizacion/', crear_partidas_organizacion, name='crear-partidas-organizacion'), path('auditor/crear-partidas/pedimento/', crear_partidas_pedimento, name='crear-partidas-pedimento'), path('auditor/auditar-pedimentos/', auditar_pedimentos_endpoint, name='auditar-pedimentos'), path('auditor/auditar-procesamiento-remesas/', auditar_procesamiento_remesas_endpoint, name='auditar-procesamiento-remesas'), path('auditor/auditar-procesamiento-remesa/pedimento/', auditar_procesamiento_remesa_pedimento_endpoint, name='auditar-procesamiento-remesa-pedimento'), ]