16 lines
881 B
Python
16 lines
881 B
Python
from django.urls import path
|
|
|
|
from .views import home, article_detail, BrandListView, BrandCreateView, BrandUpdateView, BrandDeleteView, dismiss_incident, IncidentCreateView, autofill_incident_from_url
|
|
|
|
urlpatterns = [
|
|
path("", home, name="home"),
|
|
path('article/<int:id>/', article_detail, name='article_detail'),
|
|
path('incident/add/', IncidentCreateView.as_view(), name='incident-add'),
|
|
path('incident/autofill/', autofill_incident_from_url, name='incident-autofill'),
|
|
path('incident/<int:incident_id>/dismiss/', dismiss_incident, name='dismiss_incident'),
|
|
path('brands/', BrandListView.as_view(), name='brand-list'),
|
|
path('brands/add/', BrandCreateView.as_view(), name='brand-add'),
|
|
path('brands/<int:pk>/edit/', BrandUpdateView.as_view(), name='brand-edit'),
|
|
path('brands/<int:pk>/delete/', BrandDeleteView.as_view(), name='brand-delete'),
|
|
]
|