urls.py 1.5 KB

1234567891011121314151617181920212223242526
  1. from django.urls import path, re_path
  2. from Controller import DetectController, ShadowController, DetectControllerV2, AiController, gatewayController, \
  3. PowerWarningController, InitController, CustomizedPushController, DeviceReportController, ReportController
  4. from Controller.ComboCron import ComboCronPushController
  5. from Controller.Cron import CronTaskController
  6. urlpatterns = [
  7. path('deviceShadow/generateUTK', ShadowController.generate_utk),
  8. path('deviceShadow/decryptETK', ShadowController.decrypt_etk),
  9. path('deviceShadow/update', ShadowController.update_device_shadow),
  10. path('notify/push', DetectController.NotificationView.as_view()),
  11. path('notifyV2/push', DetectControllerV2.NotificationV2View.as_view()),
  12. path('notifyV2/powerWarningPush', PowerWarningController.PowerWarningView.as_view()),
  13. re_path(r'init/(?P<operation>.*)', InitController.InitView.as_view()),
  14. re_path(r'^AiService/(?P<operation>.*)$', AiController.AiView.as_view()),
  15. re_path(r'^gatewayService/(?P<operation>.*)$', gatewayController.GatewayView.as_view()),
  16. re_path('report/(?P<operation>.*)$', ReportController.ReportView.as_view()),
  17. re_path('unicom/device/combo/(?P<operation>.*)$', ComboCronPushController.ComboCronPushView.as_view()),
  18. re_path('customized_push/(?P<operation>.*)', CustomizedPushController.CustomizedPushView.as_view()),
  19. re_path('push/device/report/(?P<operation>.*)$', DeviceReportController.DeviceReportView.as_view()),
  20. re_path('cron/create/(?P<operation>.*)', CronTaskController.CronTaskView.as_view()),
  21. ]