urls.py 773 B

123456789101112131415161718192021
  1. from django.urls import path
  2. from . import views
  3. app_name = 'firewall'
  4. urlpatterns = [
  5. path('', views.index, name='firewall-list'),
  6. path('show/<str:firewall_name>', views.show, name='show'),
  7. path('firewall-create', views.create, name='firewall-create'),
  8. path('firewall-remove/<str:firewall_name>', views.firewall_remove, name='firewall-remove'),
  9. path('firewall-edit/<str:firewall_name>', views.firewall_edit, name='firewall-edit'),
  10. path('addrule/<str:firewall_name>', views.addrule, name='addrule'),
  11. path('editrule/<str:firewall_name>/<str:firewall_rulenumber>', views.editrule, name='editrule'),
  12. path('firewall-removerule/<str:firewall_name>/<str:firewall_rulenumber>', views.firewall_removerule, name='firewall-removerule'),
  13. ]