algorithm_shop_url.py 983 B

123456789101112131415161718192021222324
  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. urlpatterns = [
  15. re_path(r'^api/(?P<operation>.*)$', AlgorithmShopController.AlgorithmShopView.as_view()),
  16. re_path(r'^cron/(?P<operation>.*)$', CronCloudPhotoController.CronCloudPhotoView.as_view()),
  17. re_path(r'^photo/(?P<operation>.*)$', CloudPhotoController.CronCloudPhotoView.as_view()),
  18. re_path(r'^open/(?P<operation>.*)$', AlgorithmShopController.AlgorithmShopView.as_view()),
  19. re_path(r'^(?P<apiVersion>[a-zA-Z0-9]+)/manage/(?P<operation>.*)$',
  20. AlgorithmShopManageController.AlgorithmShopManageView.as_view()),
  21. ]