urls.py 1.1 KB

123456789101112131415161718192021222324252627282930
  1. from django.urls import path, re_path
  2. from . import views, views_company, views_company_api, view_internal
  3. urlpatterns = [
  4. # path('api/<str:role>/<str:action>/', views.api),
  5. path('', views.login),
  6. path('register/', views.register),
  7. path('logout/', views.logout),
  8. path('home/', views.home),
  9. path('home/user/profile/', views.user_profile),
  10. path('home/user/password/', views.user_password),
  11. path('home/company/user/create/', views_company.new_user),
  12. path('home/company/profile/', views_company.profile),
  13. path('home/company/user/manager/', views_company.user_manager),
  14. re_path(r'upload/*', views.get_upload_file)
  15. ]
  16. # API urls
  17. urlpatterns += [
  18. path('home/company/api/user/list/', views_company_api.user_list),
  19. path('home/company/api/user/delete/', views_company_api.user_delete),
  20. path('home/company/api/user/admin/change/', views_company_api.user_admin_change),
  21. path('home/company/api/user/search/', views_company_api.user_search)
  22. ]
  23. # internal management urls
  24. urlpatterns += [
  25. path('internal/', view_internal.login)
  26. ]