cnas/server/apps/crm/urls.py

11 lines
387 B
Python

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