1234567891011121314151617181920212223242526 |
- from django.urls import path, re_path
- from Controller import DetectController, ShadowController, DetectControllerV2, AiController, gatewayController, \
- PowerWarningController, InitController, CustomizedPushController, DeviceReportController, ReportController
- from Controller.ComboCron import ComboCronPushController
- from Controller.Cron import CronTaskController
- urlpatterns = [
- path('deviceShadow/generateUTK', ShadowController.generate_utk),
- path('deviceShadow/decryptETK', ShadowController.decrypt_etk),
- path('deviceShadow/update', ShadowController.update_device_shadow),
- path('notify/push', DetectController.NotificationView.as_view()),
- path('notifyV2/push', DetectControllerV2.NotificationV2View.as_view()),
- path('notifyV2/powerWarningPush', PowerWarningController.PowerWarningView.as_view()),
- re_path(r'init/(?P<operation>.*)', InitController.InitView.as_view()),
- re_path(r'^AiService/(?P<operation>.*)$', AiController.AiView.as_view()),
- re_path(r'^gatewayService/(?P<operation>.*)$', gatewayController.GatewayView.as_view()),
- re_path('report/(?P<operation>.*)$', ReportController.ReportView.as_view()),
- re_path('unicom/device/combo/(?P<operation>.*)$', ComboCronPushController.ComboCronPushView.as_view()),
- re_path('customized_push/(?P<operation>.*)', CustomizedPushController.CustomizedPushView.as_view()),
- re_path('push/device/report/(?P<operation>.*)$', DeviceReportController.DeviceReportView.as_view()),
- re_path('cron/create/(?P<operation>.*)', CronTaskController.CronTaskView.as_view()),
- ]
|