loocam_url.py 1.2 KB

1234567891011121314151617181920212223
  1. # -*- encoding: utf-8 -*-
  2. """
  3. @File : loocam_url.py
  4. @Time : 2022/5/20 11:44
  5. @Author : stephen
  6. @Email : zhangdongming@asj6.wecom.work
  7. @Software: PyCharm
  8. """
  9. from django.urls import re_path
  10. from Controller.SensorGateway import GatewayFamilyRoomController, SubDeviceController, GatewayFamilyMemberController, \
  11. EquipmentFamilyController, GatewayDeviceController, SmartSceneController, SmartSocketController
  12. urlpatterns = [
  13. re_path(r'^sensor/gateway/(?P<operation>.*)$', EquipmentFamilyController.EquipmentFamilyView.as_view()),
  14. re_path(r'^gateway/family/room/(?P<operation>.*)$', GatewayFamilyRoomController.GatewayFamilyRoomView.as_view()),
  15. re_path(r'^gateway/family/member/(?P<operation>.*)$',
  16. GatewayFamilyMemberController.GatewayFamilyMemberView.as_view()),
  17. re_path(r'^gateway/subdevice/(?P<operation>.*)$', SubDeviceController.GatewaySubDeviceView.as_view()),
  18. re_path(r'^gateway/device/info/(?P<operation>.*)$', GatewayDeviceController.GatewayDeviceView.as_view()),
  19. re_path(r'^smartscene/(?P<operation>.*)$', SmartSceneController.SmartSceneView.as_view()),
  20. re_path(r'^open/socket/(?P<operation>.*)$', SmartSocketController.SmartSocketView.as_view()),
  21. ]