mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Include API routers directly where possible
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
from django.conf.urls import include, url
|
||||
|
||||
from rest_framework import routers
|
||||
|
||||
from . import views
|
||||
@@ -8,9 +6,3 @@ from . import views
|
||||
router = routers.DefaultRouter()
|
||||
router.register(r'tenant-groups', views.TenantGroupViewSet)
|
||||
router.register(r'tenants', views.TenantViewSet)
|
||||
|
||||
urlpatterns = [
|
||||
|
||||
url(r'', include(router.urls)),
|
||||
|
||||
]
|
||||
|
Reference in New Issue
Block a user