cnas/server/apps/crm/urls.py

12 lines
501 B
Python

from django.db.models import base
from django.urls import path, include
from .views import EnterpriseViewSet,EnterpriseAddressViewSet,CertunitViewSet
from rest_framework import routers
router = routers.DefaultRouter()
router.register('enterprise', EnterpriseViewSet, basename="enterprise")
router.register('enterpriseaddress', EnterpriseAddressViewSet, basename="enterpriseaddress")
router.register('certunit', CertunitViewSet, basename="product")
urlpatterns = [
path('', include(router.urls))
]