1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Standardize API URL inclusions

This commit is contained in:
Jeremy Stretch
2017-02-03 16:20:14 -05:00
parent 616ca4fe1f
commit 35f310885e
4 changed files with 27 additions and 6 deletions

View File

@@ -1,3 +1,5 @@
from django.conf.urls import include, url
from rest_framework import routers
from . import views
@@ -6,3 +8,9 @@ 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)),
]