25 lines
918 B
Python
25 lines
918 B
Python
# 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 YourViewSet # Import your viewsets here
|
|
from .views import ViewSetOrganizacion, UsoAlmacenamientoViewSet
|
|
|
|
# Create a router and register your viewsets with it
|
|
|
|
router = DefaultRouter()
|
|
|
|
# Register your viewsets with the router here
|
|
# Example:
|
|
# from .views import MyViewSet
|
|
# router.register(r'myviewset', MyViewSet, basename='myviewset')
|
|
router.register(r'organizaciones', ViewSetOrganizacion, basename='Organizacion')
|
|
router.register(r'uso-almacenamiento', UsoAlmacenamientoViewSet, basename='UsoAlmacenamiento')
|
|
|
|
#router.register(r'usuariosorganizaciones', ViewSetUsuarioOrganizacion, basename='UsuarioOrganizacion')
|
|
# Import your viewsets here
|
|
|
|
urlpatterns = [
|
|
path('', include(router.urls)),
|
|
] |