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

Standardized API URL definitions

This commit is contained in:
Jeremy Stretch
2017-03-09 13:24:02 -05:00
parent ddec424429
commit 6c2ed1be22
6 changed files with 30 additions and 43 deletions

View File

@@ -1,16 +1,12 @@
from django.conf.urls import include, url
from rest_framework import routers
from . import views
router = routers.DefaultRouter()
# Tenants
router.register(r'tenant-groups', views.TenantGroupViewSet)
router.register(r'tenants', views.TenantViewSet)
urlpatterns = [
url(r'', include(router.urls)),
]
urlpatterns = router.urls