Skip to content

Commit

Permalink
Add back path to missing endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
hmpf authored Jan 29, 2021
1 parent 4c55004 commit f54f3fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/argus/incident/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"})
Expand All @@ -20,6 +21,7 @@

app_name = "incident"
urlpatterns = [
path("mine/", sourced_incident_list, name="source_locked_incidents"),
path("<int:incident_pk>/events/", event_list, name="incident-events"),
path("<int:incident_pk>/events/<int:pk>/", event_detail, name="incident-event"),
path("<int:incident_pk>/acks/", ack_list, name="incident-acks"),
Expand Down

0 comments on commit f54f3fa

Please sign in to comment.