urls.py 1.7 KB

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