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.*)', InitController.InitView.as_view()), re_path(r'^AiService/(?P.*)$', AiController.AiView.as_view()), re_path(r'^gatewayService/(?P.*)$', gatewayController.GatewayView.as_view()), re_path('report/(?P.*)$', ReportController.ReportView.as_view()), re_path('unicom/device/combo/(?P.*)$', ComboCronPushController.ComboCronPushView.as_view()), re_path('customized_push/(?P.*)', CustomizedPushController.CustomizedPushView.as_view()), re_path('push/device/report/(?P.*)$', DeviceReportController.DeviceReportView.as_view()), re_path('cron/create/(?P.*)', CronTaskController.CronTaskView.as_view()), ]