diff --git a/src/argus/incident/urls.py b/src/argus/incident/urls.py index 16b40b565..0261f39ec 100644 --- a/src/argus/incident/urls.py +++ b/src/argus/incident/urls.py @@ -10,6 +10,7 @@ router.register(r"source-types", views.SourceSystemTypeViewSet) router.register(r"", views.IncidentViewSet) +sourced_incident_list = views.SourceLockedIncidentViewSet.as_view({"get": "list", "post": "create"}) event_list = views.EventViewSet.as_view({"get": "list", "post": "create"}) event_detail = views.EventViewSet.as_view({"get": "retrieve"}) @@ -20,6 +21,7 @@ app_name = "incident" urlpatterns = [ + path("mine/", sourced_incident_list, name="source_locked_incidents"), path("/events/", event_list, name="incident-events"), path("/events//", event_detail, name="incident-event"), path("/acks/", ack_list, name="incident-acks"),