urls.py 226 B

12345678910111213
  1. # coding=utf-8
  2. from django.conf.urls import url
  3. from rest_framework.routers import SimpleRouter
  4. from .views import *
  5. urlpatterns = [
  6. ]
  7. router = SimpleRouter()
  8. router.register(r'', TenantViewSet)
  9. urlpatterns += router.urls