algorithm_shop_url.py 1.1 KB

123456789101112131415161718192021222324252627
  1. # -*- encoding: utf-8 -*-
  2. """
  3. @File : algorithm_shop_url.py
  4. @Time : 2022/8/26 14:38
  5. @Author : stephen
  6. @Email : zhangdongming@asj6.wecom.work
  7. @Software: PyCharm
  8. """
  9. from django.urls import re_path
  10. from AdminController import AlgorithmShopManageController
  11. from Controller.AlgorithmShop import AlgorithmShopController
  12. from Controller.CloudPhoto import CloudPhotoController
  13. from Controller.Cron import CronCloudPhotoController
  14. from Controller.UserDevice import DeviceReportController
  15. urlpatterns = [
  16. re_path(r'^api/(?P<operation>.*)$', AlgorithmShopController.AlgorithmShopView.as_view()),
  17. re_path(r'^cron/(?P<operation>.*)$', CronCloudPhotoController.CronCloudPhotoView.as_view()),
  18. re_path(r'^photo/(?P<operation>.*)$', CloudPhotoController.CronCloudPhotoView.as_view()),
  19. re_path(r'^open/(?P<operation>.*)$', AlgorithmShopController.AlgorithmShopView.as_view()),
  20. re_path(r'^report/(?P<operation>.*)$', DeviceReportController.DeviceReportView.as_view()),
  21. re_path(r'^(?P<apiVersion>[a-zA-Z0-9]+)/manage/(?P<operation>.*)$',
  22. AlgorithmShopManageController.AlgorithmShopManageView.as_view()),
  23. ]