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