urls.py 974 B

12345678910111213141516171819202122
  1. from django.urls import path, re_path
  2. from django.views.generic import RedirectView, TemplateView
  3. from . import views
  4. from . import api
  5. urlpatterns = [
  6. #api taches
  7. path('api/get_list', api.user_get_list, name='gest_user_api_user_get_list'),
  8. re_path('api/get/(?P<id>\d+)', api.user_get, name='gest_user_api_user_get'),
  9. re_path('api/get/to-email/(?P<id>\d+)', api.user_get_for_send, name='gest_user_api_user_get_for_send'),
  10. re_path('api/app/edit/(?P<id>\d+)', api.app_edit, name='gest_user_api_app_edit'),
  11. re_path('api/app/switch/(?P<id>\d+)', api.switch_app_status, name='gest_user_api_switch_app_status'),
  12. re_path('api/edit/(?P<id>\d+)', api.user_edit, name='gest_user_api_user_edit'),
  13. # client
  14. path('liste', views.index, name='gest_user_index'),
  15. re_path('app/edit/(?P<id>\d+)', views.app_edit, name='gest_app_edit'),
  16. re_path('detail/(?P<id>\d+)', views.user_get, name='gest_user_get'),
  17. re_path('edit/(?P<id>\d+)', views.user_edit, name='gest_user_edit'),
  18. ]