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,5 +1,3 @@
from django.conf.urls import include, url
from rest_framework import routers
from . import views
@@ -7,10 +5,7 @@ from . import views
router = routers.DefaultRouter()
# Topology maps
router.register(r'topology-maps', views.TopologyMapViewSet)
urlpatterns = [
url(r'', include(router.urls)),
]
urlpatterns = router.urls