loocam_url.py 971 B

123456789101112131415161718192021
  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
  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. ]