1
0
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:
Jeremy Stretch
2017-02-01 15:09:23 -05:00
parent ea51f1c896
commit 06e5966cb4
4 changed files with 6 additions and 27 deletions

View File

@@ -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)),
]