urls.py 1.1 KB

123456789101112131415161718192021222324252627282930
  1. # coding=utf-8
  2. from django.conf.urls import url, include
  3. from rest_framework.routers import SimpleRouter
  4. from .views import *
  5. urlpatterns = [
  6. url(r'^login/$', TenantLoginView.as_view()),
  7. url(r'^token_refresh/$', TenantRefreshTokenView.as_view()),
  8. url(r'^token_verify/$', TenantVerifyTokenView.as_view()),
  9. url(r'^area/', include('apps.tenant.area.urls')),
  10. url(r'^permission/', include('apps.tenant.permissions.urls')),
  11. url(r'^employee/', include('apps.tenant.employee.urls')),
  12. url(r'^option/', include('apps.tenant.option.urls')),
  13. # url(r'^config/', include('apps.tenant.config.urls')),
  14. url(r'^building/', include('apps.tenant.building.urls')),
  15. url(r'^repair_order/', include('apps.tenant.repair_order.urls')),
  16. url(r'^inspection_order/', include('apps.tenant.inspection_order.urls')),
  17. url(r'^wxapp/', include('apps.wxapp.urls')),
  18. url(r'^equipment/', include('apps.tenant.equipment.urls')),
  19. url(r'^device/', include('apps.tenant.device.urls')),
  20. url(r'^notices/', include('apps.tenant.notices.urls')),
  21. ]
  22. router = SimpleRouter()
  23. router.register(r'company', CompanyViewSet)
  24. urlpatterns += router.urls