Standardized API URL definitions

This commit is contained in:
Jeremy Stretch
2017-03-09 13:24:02 -05:00
parent 1ba65cb311
commit 78f0d583b0
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