Jelajahi Sumber

检测推送项目

guanhailong 2 tahun lalu
induk
melakukan
bb58307855
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      AnsjerPush/urls.py

+ 2 - 1
AnsjerPush/urls.py

@@ -1,7 +1,7 @@
 from django.urls import path, re_path
 
 from Controller import DetectController, ShadowController, DetectControllerV2, AiController, gatewayController, \
-    PowerWarningController
+    PowerWarningController, InitController
 from Controller.ComboCron import ComboCronPushController
 
 urlpatterns = [
@@ -12,6 +12,7 @@ urlpatterns = [
     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('unicom/device/combo/(?P<operation>.*)$', ComboCronPushController.ComboCronPushView.as_view())