urls.py 309 B

1234567891011121314
  1. # coding=utf-8
  2. from django.conf.urls import url,include
  3. from apps.tenant.device.views import DeviceViewSet
  4. from rest_framework.routers import SimpleRouter
  5. urlpatterns = [
  6. ]
  7. # 创建路由器并注册我们的视图。
  8. router = SimpleRouter()
  9. router.register(r'', DeviceViewSet)
  10. urlpatterns += router.urls