1
0

urls.py 643 B

123456789101112131415161718
  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.taches_get_list, name='parc_info_api_taches_get_list'),
  8. re_path('api/get_taches/(?P<id_tache>\d+)', api.taches_get_info, name='parc_info_api_taches_get_info'),
  9. re_path('api/edit_taches/(?P<id_tache>\d+)', api.taches_edit_info, name='parc_info_api_taches_edit_info'),
  10. # taches
  11. path('', views.taches_show_list, name='parc_info_taches_show_list'),
  12. re_path('edit/(?P<id_tache>\d+)', views.taches_edit_info, name='parc_info_taches_edit_info'),
  13. ]